[Pkg-gmagick-im-team] Bug#670661: Bug#670661: imagemagick: fails to convert correctly from svg to png in s390 architecture

claire.parrish at imagemagick.org claire.parrish at imagemagick.org
Fri Sep 28 11:30:07 UTC 2012


Type 'convert -list format'.  Is RSVG associated with the SVG tag?  If not, add --with-rsvg to the configure command line when you build ImageMagick.

We downloaded ImageMagick-6.6.0-10.tar.gz to the s390 emulator and installed RSVG and RSVG development packages.  We built and installed ImageMagick and it rendered img0.svg properly.   If that fails, edit magick/magick-config.h and comment out the MAGICKCORE_CAIRO_DELEGATE define.  Now rebuild and reinstall.  Does that produce a proper rendering?   Recent versions of ImageMagick utilize the PANGO renderer and may return superior results.

If all else fails, you can delete the svg.so module and ImageMagick will revert to the rsvg delegate program and return proper results.

Note, the SVG code has changed very little over the last several years and it primarily relies on delegate libraries such as RSVG, Pango, and Cairo.  The img0.svg image renders for us on all the systems we tried, CentOS, Redhat, Fedora, and Mac.   It seems likely that the problem may be the CAIRO rendering specifically on the s390.   When we commented out the MAGICKCORE_CAIRO_DELEGATE, the image rendered properly.  If MAGICKCORE_CAIRO_DELEGATE is not defined, ImageMagick reverts to direct GDK rendering

We would have more detailed results but we got a bit frustrated with the s390 emulator.  It took more than 30 minutes each time we made a change and attempted to rebuild and reinstall ImageMagick.   Its just a few minutes on our 6 core physical machine.

Claire Parrish
ImageMagick Development Team



More information about the Pkg-gmagick-im-team mailing list