dereenigne.org

reverse engineered

Multiple JPEG images to single PDF

Another handy ImageMagick trick this week. For one reason or another, many people still scan documents to JPEG files rather than PDF files. You can convert all of these images to a PDF in a single command. convert img1.jpg img2.jpg img3.jpg output.pdf Read more →

Batch Image Conversion

If you have a batch image conversion to do, ImageMagick is your friend. It provides commandline tools for manipulating images. I recently had to convert about 200 .svg images to .png images, while maintaining the alpha channel. Rather than doing this by hand, it can be done in a single command, using mogrify, one of the ImageMagick utilities. mogrify -background none -format png *.svg Have a look here for a list of the other arguments that can be passed to mogrify. Read more →