Instalar:

brew install imagemagick brew install ghostscript

Comando para convertir:

convert file.pdf file.png

Para jugar con el PPI

convert -density 300 file.pdf file.png

Convertir varios archivos en el mismo folder

mogrify -format jpg -- *.pdf

Convertir varios archivos indicando el output y input

mogrify -format jpg -path ../output_folder/ ./*.pdf

Originally published at https://medium.com on August 7, 2019.

Jaine Barturen

Software developer & Digital Marketer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store