“sips — scriptable image processing system”
This tool is used to query or modify raster image files and ColorSync ICC profiles. Its functionality can also be used through the "Image Events" AppleScript suite.
‘sips’ lives in /usr/bin/sips and is available on both Tiger and Leopard (OS 10.4, 10.5)
What is it ? Its a command line tool that lets you quickly resize/resample and convert just about any image format file to a raster based format. It even works with OS X icon files, .icns, and PDF formats.
In my case, I found this extremely valuable for creating PNG previews from existing PDF documents.
Example 1 – Convert PDF to PNG
sips -s format png mypdf.pdf --out myimage.png
Example 2 – Resize based on width restriction
sips --resampleWidth 64 myimage.png --out myimage-resized.png
Example 3 – Convert and Resize
sips -s format png --resampleWidth 64 mypdf.pdf --out myimage-resized.png
For more information, simply type ‘man sips’ at a terminal command line
Converting Multi-Page PDF Documents
I have put together a command-line-only solution for using sips to convert multi-page PDF documents, thanks to the comments by Brian below.
View the solution by proceeding to the following article ‘OS X Image Manipulation – Convert Multi-page PDF with sips and pdftk‘ or by reading the comments.