Problem generating JPEG image from PDF with Imagick via Ghostscript

0

The problem is this: it does not generate any more image ... My script stopped working, apparently after an update of ImageMagick. When I searched for answers I saw many complained that the script stopped working in the same situation, recent posts from this month or last month.

I complained about the hosting, since I can not go into the bottom of this question, since what actually converts from PDF to JPEG is Ghostscript. They responded that this is a "development issue," which is not part of the support package. Is that it?

The line that generates error is as follows:

$Img->readImage($urlArq."[".$pag."]");

The error:

Fatal error: Uncaught exception 'ImagickException' with message 'PDFDelegateFailed '[ghostscript library] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r150x150" -dFirstPage=1 -dLastPage=1 "-sOutputFile=/tmp/magick-316787_tM5qhaBA3E%d" "-f/tmp/magick-316787MBoQDwPMLvz" "-f/tmp/magick-31678SNvHB_Zdq8Xt"': -dname= must be followed by a valid token @ error/pdf.c/InvokePDFDelegate/263' in /home/sintrano/public_html/conteudo_apitaco_jpeg.php:23 Stack trace: #0 /home/sintrano/public_html/conteudo_apitaco_jpeg.php(23): Imagick->readimage('apitaco/edicao-...') #1 {main} thrown in /home/sintrano/public_html/conteudo_apitaco_jpeg.php on line 23

The version:

versionNumber: 1680
versionString: ImageMagick 6.9.0-0 Q16 x86_64 2016-05-05 http://www.imagemagick.org

Can I say that they are taking the body out and have to find a way? Are there alternatives if they do not want to mess with Ghostscript since it's a shared server?

    
asked by anonymous 22.07.2016 / 01:30

0 answers