Dear All,
I am trying to convert SVG file format to JPG. The conversion works fine for the "full" image, but when converting the same data with a different SVG viewBox (smaller portion of the image), I just get the top left corner of the image. It looks like the viewBox attribute of the SVG is not taken into account by PerlMagick and it's just rendering default (0,0,DocWidth,DocHeight).
I haven't seen much posts regarding SVG and PerlMagick. Does anybody has experience doing that kind of thing ?
ImageMagick 6.5.4 Q16 on WIndows XP SP2
Cheers,
Jerome
SVG convert & viewBox
Re: SVG convert & viewBox
Post a URL to your SVG image so we can download and inspect it.
Re: SVG convert & viewBox
There might be a problem with the SVG but I can't figure it out. The svg displays well in FF, IE, Inkscape
URLS:
http : // soklimtours.com/testjerome/testOK.svg
http : // soklimtours.com/testjerome/testOK.jpg
http : // soklimtours.com/testjerome/testFAIL.svg
http : // soklimtours.com/testjerome/testFAIL.jpg
Thanks for your help
URLS:
http : // soklimtours.com/testjerome/testOK.svg
http : // soklimtours.com/testjerome/testOK.jpg
http : // soklimtours.com/testjerome/testFAIL.svg
http : // soklimtours.com/testjerome/testFAIL.jpg
Thanks for your help
Re: SVG convert & viewBox
We can reproduce the problem and we'll work toward a patch to fix it. Unfortunately we do not have an ETA on a patch at this time. Thanks for alerting us to the problem.
Re: SVG convert & viewBox
Thanks, glad to know I'm not going mad.
If you know what causes the problem in the svg or can think of any workaround while waiting for the patch, please let me know.
Cheers,
Jerome
If you know what causes the problem in the svg or can think of any workaround while waiting for the patch, please let me know.
Cheers,
Jerome