Page 1 of 1

Svg fonts deformation on convert with high resolution

Posted: 2016-12-06T08:38:13-07:00
by LaZef
Hello,

I want to convert some svg with text content to png32 image with many fonts using php and Imagick.

Actually, I'm successing to get png image with all my text at good place and with right font each times.
My problem come when I want to increase resolution of Imagick image with setResolution(),
after have change the resolution, some fonts (not all fonts, just 2 or 3) was distorded.

Code: Select all

$dpi = 300;
$image = new IMagick();
$image->setBackgroundColor(new ImagickPixel('transparent'));
$image->setResolution($dpi, $dpi);
$image->readImageBlob($my_text_svg);
$image->setImageFormat("png32");
This is the result when I don't increase resolution :
Image
And this is the result when I applicate a 300dpi resolution :
Image

The result is proportionally distorted with the resolution who has been defined.

Have you an idea of why this is do this ?

Thanks verymuch in advance for any help.

LaZef

Php Imagick version number : 1673
ImageMagick version : ImageMagick 6.8.9-9 Q16 x86_64 2016-09-23

Re: Svg fonts deformation on convert with high resolution

Posted: 2016-12-23T01:58:43-07:00
by LaZef
Hello,

After many hours of test, I've simply tried on another machine.
Apparently, this seems to come from the imagick version available on debian.
I can't install better version than 3.2.0RC1 on my debian machine,
but when I tried to execute my script on ubuntu machine with imagick 3.4.3, all work fine.
So ... that the conclusion