[PECL-BUG] Bug #17006 [NEW]: Imagick::setResolution() does not work for SVG-files anymore
[email protected] ("sualk at lednew dot de")
| Newsgroups | php.pear.webmaster |
|---|---|
| Message-ID | <[email protected]> |
From: sualk at lednew dot de
Operating system: Linux Ubuntu 9.10; php 5.3.1
Package version:
PHP version: 5_3.1RC2
Package: Bug System
Bug Type: Bug
Bug description: Imagick::setResolution() does not work for SVG-files anymore
Description:
------------
*Aim*: Resizing of vector graphics, pdf, ps, eps etc. WITHOUT
Interpolation.
*by way of comparison the procedure in shell*: convert start.svg --density
123x123 end.png
*Procedure in php*:
1. Create new Imagick-Object
2. set new Resolution
3. read Image
*Problem*:
It works very fine for pdf, ps, eps etc. It DID work very fine for
SVG-files too, while I used PHP 5.2.xx; ImageMagick 6.5.1 and
Imagick-2.2.2
It did/does NOT work for SVG with:
PHP 5.2.xx; ImageMagick 6.5.1 and Imagick-2.2.1
PHP 5.3.1; ImageMagick 6.5.1 and Imagick-2.3.0
PHP 5.3.1; ImageMagick 6.5.1 and Imagick-2.2.2
PHP 5.3.1; ImageMagick 6.5.8 and Imagick-2.3.0
PHP 5.3.1; ImageMagick 6.5.8 and Imagick-3.0.0b1
Reproduce code:
---------------
<?php
$im = new Imagick();
$im->readImage("start.svg");
var_dump($im->getImageResolution());
$im->removeImage();
$im->setResolution(123,123);
$im->readImage("start.svg");
var_dump($im->getImageResolution()); // Shows old value, should be 123
// Also try with a pdf- or ps-file and it works perfectly!
?>
Expected result:
----------------
array(2) { ["x"]=> float(72) ["y"]=> float(72) }
array(2) { ["x"]=> float(123) ["y"]=> float(123) }
Actual result:
--------------
array(2) { ["x"]=> float(72) ["y"]=> float(72) }
array(2) { ["x"]=> float(72) ["y"]=> float(72) }
--
Edit bug report at http://pecl.php.net/bugs/bug.php?id=17006&edit=1
--