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");
And this is the result when I applicate a 300dpi resolution :
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