Resize svg

Post questions on how to use or achieve an effect in Inkscape.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Resize svg

Postby sas » Fri Mar 12, 2010 8:02 pm

That SVG file has (implicitly, by default) width="100%", height="100%" and preserveAspectRatio="xMidYMid". This means that when displayed it should fill the viewing area, as far as is possible while preserving the aspect ratio. So the image doesn't have a specific size, but reporting the size as 1 x 1 is very misleading (particularly as the image isn't even square). Reporting the size as 1758 x 1623, as Inkscape 0.47 does, makes more sense. If you want to file a bug report for gThumb or nautilus, point them to sections 5.1.2, 7.7 and 7.8 of the SVG 1.0 (or 1.1) spec.

If you would like WMFtoSVG to produce SVG files with a fixed width and height, you can use the -w and -h command line options, as described in the documentation. E.g., -w 500 -h 500 will produce an SVG file that is at most 500x500. Or, alternatively, use the --write-size command line option.

frt975
Posts: 2
Joined: Fri Mar 12, 2010 9:26 am

Re: Resize svg

Postby frt975 » Sat Mar 13, 2010 2:23 am

Thanks! I can now see the preview in nautilus.


Return to “Help with using Inkscape”