Graphic Format Conversion

PDF to JPG/PNG

ImageMagick

At its simplest...

convert MyPDF.pdf MyJPG.jpg

You can influence the size/quality of the resultant jpg...

convert -density 100 MyPDF.pdf -quality 80 MyJPG.jpg

quality is expressed as a percentagedensity is expressed as DPI
If you see this error...convert-im6.q16: not authorizeddo this...sudo vi $(convert -list policy | head -2 | tail -1 | awk '{ print $2 }')search for 'PDF' and update the line from... <policy domain="coder" rights="none" pattern="PDF" />to... <policy domain="coder" rights="read" pattern="PDF" />

If you get a black background, try something like this...

convert -density 100 MyPDF.pdf -colorspace sRGB -background white -alpha remove -quality 80 MyPNG.png

quality is expressed as a percentagedensity is expressed as DPI