Page 1 of 1

SVG convert & viewBox

Posted: 2009-08-10T22:21:22-07:00
by jbenezech
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

Re: SVG convert & viewBox

Posted: 2009-08-11T05:43:15-07:00
by magick
Post a URL to your SVG image so we can download and inspect it.

Re: SVG convert & viewBox

Posted: 2009-08-11T22:46:49-07:00
by jbenezech
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

Re: SVG convert & viewBox

Posted: 2009-08-12T05:57:22-07:00
by magick
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

Posted: 2009-08-14T02:43:51-07:00
by jbenezech
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