I use to be able to run a command like this using ImageMagick 6.x to convert a CMYK PDF to a PNG image:
Code: Select all
magick -colorspace sRGB input.pdf output.png
Code: Select all
magick: FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -dFirstPage=1 -dLastPage=1 '-sOutputFile=/tmp/magick-14647WacR78O8Ph1%d' '-f/tmp/magick-1464d2IonIEo0TJ4' '-f/tmp/magick-1464o76XGjKsznc8'' (-1) @ error/delegate.c/ExternalDelegateCommand/462.