SVG to PNG pattern image repeat issue
Posted: 2019-06-01T00:41:43-07:00
Hello,
I would convert a SVG file to a PNG file with Imagick PHP. I use the command line and the generated image file is ok except for the patterns images : the repeat seems to not be exact and we can see 1 or 2 pixels space beetwen repeat bloc image.
On Chrome browser the SVG render is perfect. And I have tested with RSVG and Inkscape: same problem...
Here you can find some pictures to illustrate : (please open it in full size to view the issue)
Expected render in Chrome :
Imagick render :
Inkscape (look at the star the 1 pixel black lines) :
RSVG (repeat position is right but not the last text border and the image shadow blur) :
Is it a bug ? An error in my SVG syntax ?
Thanks for your help
Clement
Configuration :
PHP Version 7.1.27-1+0~20190307202204.14+stretch~1.gbp7163d5
imagick module version 3.4.3
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version ImageMagick 6.9.7-4 Q16 x86_64 20170114
I would convert a SVG file to a PNG file with Imagick PHP. I use the command line and the generated image file is ok except for the patterns images : the repeat seems to not be exact and we can see 1 or 2 pixels space beetwen repeat bloc image.
On Chrome browser the SVG render is perfect. And I have tested with RSVG and Inkscape: same problem...
Here you can find some pictures to illustrate : (please open it in full size to view the issue)
Expected render in Chrome :
Imagick render :
Inkscape (look at the star the 1 pixel black lines) :
RSVG (repeat position is right but not the last text border and the image shadow blur) :
Is it a bug ? An error in my SVG syntax ?
Thanks for your help
Clement
Configuration :
PHP Version 7.1.27-1+0~20190307202204.14+stretch~1.gbp7163d5
imagick module version 3.4.3
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version ImageMagick 6.9.7-4 Q16 x86_64 20170114