
$ ls -l cat.jpg 1 Administration staff 8401 Jun 18 07:06 cat.jpg rw-r-r-+ 1 10193 Jun 18 07:22 cat.pdfĬonversion to Adobe's PSD raster-image format A similar sips idiom creates Adobe-compatible *.psd files $ sips -s format psd cat.jpg -out 'cat.psd' 1>/dev/null 2>&1 The MacOS utility SIPS Under MacOS (Sierra), Apple's built-in command-line utility sips provides comprehensive access to all of Apple's raster-image utilities this turns out to include the conversion of jpg to pdf.įor example, from an existing low-resolution/small-size jpg image 'cat.jpg' (of size 8401 bytes), the following command-line creates 'cat.pdf', with no change in raster-resolution and minimal expansion of file size: $ sips -s format pdf cat.jpg -out 'cat.pdf' 1>/dev/null 2>&1 it has versatile expressiveness while remaining concise.

This is an easy way to avoid having to resort to a Makefile (unless you're already using one) and it is another good reason why it is worth using find whenever possible. Here is a way that combines the best of the above suggestions into a simple, efficient, robust command line: find /path/to/files -iname '*.jpg' -exec mogrify -format pdf + touch timestamp
