1 (edited by mazz 2014-09-17 20:46:07)

Topic: PDF problem with ImageMagic-last-libs 6.8.9.7-2

I started getting these error messages after updating this package (these are from the PHP imagick extension):

Caught Exception: PDFDelegateFailed `[ghostscript library] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dUseCIEColor "-sOutputFile=/tmp/magick-320807xqpPIxdkvMk%d" "-f/tmp/magick-32080x_2jLbAXRyaJ" "-f/tmp/magick-32080lL2VmTkUoDy7"': -dname= must be followed by a valid token @ error/pdf.c/InvokePDFDelegate/256

I did a simple downgrade to 0:6.8.9.0-1.el6.remi and the errors are now gone but I've not had time to investigate why this issue happened.

Re: PDF problem with ImageMagic-last-libs 6.8.9.7-2

It seems to be the same problem than http://forums.famillecollet.com/viewtopic.php?id=2898 but for another backend...

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PDF problem with ImageMagic-last-libs 6.8.9.7-2

The goal of my repo is to provide "recent" and "vanilla" versions.

So I hate having to patch without upstream acknowledgment...

Can you please open an upstream bug report and paste the link here, so I can follow this issue.

I'm working on a new build, reverting the pdf changes (as for the ps), should be available later today.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PDF problem with ImageMagic-last-libs 6.8.9.7-2

I can reproduce the bug, and it seems fixed in the latest build (-3)

ImageMagick-last-6.8.9.7-3 is now available in remi-test repo (and should be soon on the mirrors)

Can you please test it

yum --enablerepo=remi-test update 'ImageMagick-last*'

I'm waiting for your feedback before I move it to remi repo.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PDF problem with ImageMagic-last-libs 6.8.9.7-2

Reported as http://www.imagemagick.org/discourse-se … mp;t=26260

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PDF problem with ImageMagic-last-libs 6.8.9.7-2

Hmmm... it seems there is a conflict between gd and imagick extension.

$ php -n  -d extension=imagick.so -r 'var_dump($im = new Imagick("../foo.pdf"));'
object(Imagick)#1 (0) {
}


$ php -n  -d extension=gd.so -d extension=imagick.so -r 'var_dump($im = new Imagick("../foo.pdf"));'
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 "-r72x72"  "-sOutputFile=/tmp/magick-23206Etf1IQL36Gxr%d" "-f/tmp/magick-2320654fHZEtsfGk7" "-f/tmp/magick-23206pyS5GXbLMJ7M"': -dname= must be followed by a valid token
 @ error/pdf.c/InvokePDFDelegate/256' in Command line code:1
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PDF problem with ImageMagic-last-libs 6.8.9.7-2

ImageMagick-last-6.8.9.7-4 is now available in remi-test repo (and should be soon on the mirrors)

Can you please test this new build.
Feedback expected.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi