converting *.pdf to an image series
pdf is a document format. on the occasion where it is easier to reference an image rather than the full document, the following command will convert the pdf.
convert -density 96x96 -trim INPUTFILE.pdf OUTPUTFILE.jpg
-density is the image density in pixels per square inch
-trim will trim the image edges
the output will be in the form of OUTPUTFILE-#.jpg, where # is an increasing “page” number.
this command will also work for OUTPUTFILE.png, OUTPUTFILE.gif, et. al..
also, imagemagick uses ghostscript to convert, so the quality of the final images will only be as good as ghostscript can provide.