Converting PDFs to JPEG sequences using imagemagick

Imagemagick (available from all good package managers) has the ability to split a .pdf file into a set of numbered images via the following incantation…

convert -quality 100 -density 200 -colorspace sRGB <PathToPDF> -flatten <PathToOutputDirectory/>Page-%02d.jpeg

…where, of course, ‘%02d’ represents the auto-numbering element of the incantation.

‘Go away or I will replace you with a very small shell script’

Another aide-memoire so that I have the link kicking around…

There used to be a somewhat famous ThinkGeek teeshirt called ‘Go away or I will replace you with a very small shell script’ that, even now, gets periodically referenced on the more tech-ish end of the internet. With ThinkGeek now lost to the mists of time, it’s not as easy to Google for as it used to be.

Continue reading “‘Go away or I will replace you with a very small shell script’”