Dear Forum,
I am embedding (not linking) bitmap images into my inkscape .svg file. After embedding, I wish to change their aspect ratio simply
by dragging with mouse.
I save the file .. if I open it with inkscape, everything's perfect, i.e. the new "distorted" aspect ratio is preserved.
.. but if I open it with other programs (tested firefox and gimp so far), the images appear with the original aspect rations.
Can this be fixed or is it some internal thing of the .svg file format?
Regards,
Sampsa
changing aspect ratio of bitmap images
Re: changing aspect ratio of bitmap images
Ok.. I found this out by myself..
.. and it seems to be a bug in Inskcape!
I must, manually, open the XML dialog for each bitmap image, and add the following attribute:
http://www.w3.org/TR/SVG11/coords.html# ... oAttribute
i.e. i must set "preserveAspectRatio" to "none"
I think this should be automagic.
Cheers,
Sampsa
.. and it seems to be a bug in Inskcape!

I must, manually, open the XML dialog for each bitmap image, and add the following attribute:
http://www.w3.org/TR/SVG11/coords.html# ... oAttribute
i.e. i must set "preserveAspectRatio" to "none"
I think this should be automagic.
Cheers,
Sampsa
Re: changing aspect ratio of bitmap images
Known issue, reported as #616717 “Resized bitmap images are rendered differently by Firefox or Batik ('preserveAspectRatio' attribute not set)” (other related reports: #461467 and #924377).
-
- Posts: 2
- Joined: Tue Jan 10, 2017 11:04 pm
Re: changing aspect ratio of bitmap images
For anyone running into this - this bug is still there for me in inkscape 0.91 in March 2017. Only, that I don't even need to save in between, the image bounces back immediately to it's original aspect ratio as soon as I release the mouse.
The workaround still works - go to Edit-->XML Editor, then add an attribute calle "preserveAspectRatio" and enter "none" as the attribute value in the box underneath it.
The workaround still works - go to Edit-->XML Editor, then add an attribute calle "preserveAspectRatio" and enter "none" as the attribute value in the box underneath it.
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: changing aspect ratio of bitmap images
What build and what operating system?
I can't replicate the issue on 0.91 r13725 under Win XP... the attribute & value are there when I import a bitmap.
You might consider updating to 0.92.1
I can't replicate the issue on 0.91 r13725 under Win XP... the attribute & value are there when I import a bitmap.
You might consider updating to 0.92.1
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/