SVG convert & viewBox

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
jbenezech

SVG convert & viewBox

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG convert & viewBox

Post by magick »

Post a URL to your SVG image so we can download and inspect it.
jbenezech

Re: SVG convert & viewBox

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG convert & viewBox

Post 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.
jbenezech

Re: SVG convert & viewBox

Post 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
Post Reply