Re: readImageBlob(svg) crashing apache?
Posted: 2012-01-27T11:40:05-07:00
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.
$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.