changing aspect ratio of bitmap images

Post questions on how to use or achieve an effect in Inkscape.
sampsa
Posts: 2
Joined: Mon Mar 18, 2013 10:04 pm

changing aspect ratio of bitmap images

Postby sampsa » Mon Mar 18, 2013 10:23 pm

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

sampsa
Posts: 2
Joined: Mon Mar 18, 2013 10:04 pm

Re: changing aspect ratio of bitmap images

Postby sampsa » Mon Mar 18, 2013 10:35 pm

Ok.. I found this out by myself..

.. and it seems to be a bug in Inskcape! :shock:

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

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: changing aspect ratio of bitmap images

Postby ~suv » Wed Mar 20, 2013 8:46 am


squarespiral
Posts: 2
Joined: Tue Jan 10, 2017 11:04 pm

Re: changing aspect ratio of bitmap images

Postby squarespiral » Tue Mar 14, 2017 7:05 pm

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.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: changing aspect ratio of bitmap images

Postby tylerdurden » Wed Mar 15, 2017 12:18 am

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
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/


Return to “Help with using Inkscape”