Bitmap-Copy-Resize-Bug

Bug #1570074 reported by xterm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Unassigned

Bug Description

Inkscape Bitmap-Copy-Resize-Bug

OS: Ubuntu 14.04LTS, Windows7Pro SP1
Inkscape Version: 0.91 r (Ubuntu & Windows),
(also tested on the Win64 Nightly-Build: Inkscape_0.91+devel_64bit_r14762.7z)

1. Import a bitmap or draw an object (e.g. a spiral, size:100x100mm, Strokestyle-Width:1mm, Strokepaint:black).

2. Make a bitmap-copy from the object, move the bitmap-copy away from the original object.

3. Resize the bitmap-copy from 100x100mm to 100x200mm, (do not lock aspect-ratio).

Result:
Only the bounding-box of bitmap-copy is resized, the bitmap-copy itself stays the same size!
This means it is impossible to resize a bitmap-copy. Whatever the function "Make a Bitmap Copy" creates, it is something strange but it is definately not a bitmap!

Revision history for this message
Hachmann (marenhachmann) wrote :

I can confirm this behaviour (but it's still a bitmap copy, only it hasn't the attribute for not preserving the aspect ratio set).

You can fix this (as a workaround) by adding (without the quotes)

"preserveAspectRatio"

into the first text entry field and

"none"

into the text field in the XML editor when the object is selected. Then click on "Set".

Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP (32-bit), trunk rev. 14920. But I'm not sure it's a bug or an expected behavior.

tags: added: bitmap transformations
Revision history for this message
su_v (suv-lp) wrote :

These bitmap images generated and added via 'Make a Bitmap Copy' lack the attribute 'preserveAspectRatio' with value 'none' - the rendering as such is technically "correct" after transforming the bitmap image non-uniformly (corresponding to the SVG spec), but user expectation would be that Inkscape adds the attribute and sets it to 'none' to allow non-uniform scaling (as it does for pasted and imported bitmap images with >= 0.91).

Revision history for this message
su_v (suv-lp) wrote :

@JazzyNico - I'd consider it a bug, or maybe more accurately an oversight at the time full support for 'preserveAspectRatio' was introduced in the new renderer, and bitmap import (directly, or e.g. via PDF) was adjusted accordingly (for direct bitmap image import in r13020, for bitmap images of imported PDF files in r13023).

See also:
http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/42630/focus=42662

Note also that current trunk / 0.92pre includes an extension which can be used to add & set the attribute to bitmap images in files created with older Inkscape versions (Extensions > Images > Set Image Attributes) without having to mess with SVG code in the XML Editor directly.

Revision history for this message
jazzynico (jazzynico) wrote :

Thanks for your explanation ~suv!

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.