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.
readImageBlob(svg) crashing apache?
-
- Posts: 16
- Joined: 2011-07-27T21:24:03-07:00
- Authentication code: 8675308
Re: readImageBlob(svg) crashing apache?
Last edited by charlie1234 on 2012-01-27T13:38:27-07:00, edited 1 time in total.
-
- Posts: 16
- Joined: 2011-07-27T21:24:03-07:00
- Authentication code: 8675308
Re: readImageBlob(svg) crashing apache?
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 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...
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
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...