The code works flawlessly, but the rasterized JPG got some elements misplaces (I tthink that the rotated ones only)
This is the code
Code: Select all
<?php
$usmap = '/www/docs/.com.ar/public_html/presugen/export/svgGenerado.svg';
$im = new Imagick();
$svgin = file_get_contents($usmap);
$im->readImageBlob($svgin);
/*jpeg settings*/
$im->setImageFormat("jpeg");
$im->writeImage('/www/docs/.com.ar/public_html/presugen/export/svgRasterizado.jpg');/*(or .jpg)*/
$im->clear();
$im->destroy();
?>
Please advise, is the last think to finish my project.
Thans a lot!