2
votes

I can successfully convert some pdfs to pngs but some throw this error:

ImagickException: FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r144x144' -dFirstPage=1 -dLastPage=1 '-sOutputFile=/tmp/magick-966AGfRi74eBSiG%d' '-f/tmp/magick-966t0bB45paDzcW' '-f/tmp/magick-966l4St1G1Jfh6b'' (-1) @ error/delegate.c/ExternalDelegateCommand/462

I have a hard time to move forward as I don't understand nothing of the error msg.

What can be the problem?

2

2 Answers

1
votes

Duplicate of this question:

ghostscript 9.26 update breaks imagick readImage for multipage PDF

But I can't mark this as a duplicate as the answer has neither been accepted or upvoted.

1
votes

I was getting that same error in Ubuntu using ghostscript version 9.26. After additionally installing ghostscript-x with apt-get update && apt-get install -y ghostscript-x the problem was solved.