pdf pages to images imagemagick code example
Example 1: pdf to images imagemagick
convert -density 150 presentation.pdf -quality 90 output.jpg
Example 2: pdf pages to images imagemagick
# Requires having ghostscript(download at www.ghostscript.com)
# Using ghostscript + imagemagick
convert -density 150 presentation.pdf -quality 90 output-%3d.jpg
# Using ghostscript alone (faster and more efficient)
gswin64c.exe -dNOPAUSE -sDEVICE=jpeg -r200 -dJPEGQ=60 -sOutputFile=foo-%03d.jpg foo.pdf -dBATCH