SVG stretched?

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
spatialminds

SVG stretched?

Post by spatialminds »

I have an SVG file that displays correctly in Inkscape, Adobe Illustrator, Firefox, and the Adobe IE SVG plugin but displays horizontally stretched in Image Magick's IM_Display program or in my application that uses Magick++. I'm using ImageMagick-6.4.5.

Any suggestions on how to prevent this?

The original SVG Image is available at: http://cid-b65b5474ac45b749.skydrive.li ... c/Jeep.svg

Stretched Image as incorrectly shown in Image Magick Display Program
Image

Streteched Image generated via Magick++.

Code: Select all

Image.read("myimage.svg"); 
Image.write("myimage.png");
Image

Image shown correctly in Inkscape
Image

Thank you for the help,
Craig
Last edited by spatialminds on 2008-11-07T20:52:12-07:00, edited 3 times in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG stretched?

Post by magick »

Our initial suggestions is to post a URL to your SVG file so we can download it and reproduce the problem. Another suggestion is to try the latest release of ImageMagick to see if the problem persists.
spatialminds

Re: SVG stretched?

Post by spatialminds »

Thank you for the suggestions. I edited my original post to include the Magick version and a link to the SVG.

I believe I am using the latest version of ImageMagick (6.4.5).

Regards,
Craig
spatialminds

Re: SVG stretched?

Post by spatialminds »

This only seems to be happening with SVG files that are edited in Inkscape.

I still find it odd that this only shows up in ImageMagick as a problem and it might be something worth looking into as a bug, but it no longer affects our ability to move forward (we are going to use Illustrator).

While it doesn't affect us directly anymore, if someone is going to look into this, please let me know if I can help in anyway.

Regards,
Craig
spatialminds

Re: SVG stretched?

Post by spatialminds »

More experimentation with Inkscape because I like this program so much. :)

Initiale tests indicate that the problem goes away if the Zoom to Fit Page button is pressed before saving. I didn't do a diff on the SVG to determine how that changes the underlying document, but it could be helpful for someone looking into this.
Post Reply