Page 2 of 2

Re: readImageBlob(svg) crashing apache?

Posted: 2012-01-27T11:40:05-07:00
by charlie1234
I downgraded to 6.7.4-0 and now am able to at least convert from .png to .jpg:

$image = 'baseball.png';
$im = new Imagick();
$im->readImage($image);
$im->setImageFormat("jpg");
header("Content-Type: image/jpg");
print $im;

using a .svg fails with (I believe) a segmentation fault:

$image = 'baseball.svg';
$im = new Imagick();
$im->readImage($image);
$im->setImageFormat("jpg");
header("Content-Type: image/jpg");
print $im;

Edit: I want to add that running the php script from the command line actually did create and save the SVG as a PNG under 6.7.4-0, even though it threw a segfault. When I later downgraded to 6.6.x cli php was not able to create the file. Just something interesting and potentially helpful.

Re: readImageBlob(svg) crashing apache?

Posted: 2012-01-27T13:29:17-07:00
by charlie1234
I uninstalled 6.7.4-0 and recompiled/installed 6.6.2 as that had been working locally. Still could not get the segfault resolved.

I then removed 6.6.2 and used PECL to uninstall imagick. Then I used apt-get to install _all_ of the required and suggested dependencies here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576627

Then I ran

Code: Select all

apt-get install libmagickcore3-extra imagemagick --fix-missing
to just let aptitude manage the package(s).

Then I reinstalled imagick via: pecl install imagick-3.0.1

I'm back to where I was yesterday, thankfully (can convert SVGs again, no seg faults, PHP is happy) but I can't do any of the text arcing stuff that seems to require 6.7.x. Woe is me...