Bug 76991 - Writer destroys aspect ratio when scaling graphics
Summary: Writer destroys aspect ratio when scaling graphics
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 10:50 UTC by Gerry
Modified: 2014-06-20 11:29 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Strange-aspect-ratio-bug-in-Writer.odt (36.37 KB, application/vnd.oasis.opendocument.text)
2014-04-03 10:50 UTC, Gerry
Details

Description Gerry 2014-04-03 10:50:30 UTC
Created attachment 96837 [details]
Strange-aspect-ratio-bug-in-Writer.odt

Writer destroys the aspect ratio of graphics although "keep ratio" is active.

How to reproduce the bug: 
1. Perform a right mouse click on the graphic in attached document and choose "Picture" and the tab "Type"
2. Check the button "Keep ratio" and for Width check the button "Relative"
3. Decrease the value of the width percentage to any value (e.g. 30%). Click okay. The graphic scales perfectly. No problem here.
4. Now go again to the tab "Type" and increase the width percentage to any value (e.g. 70%). The graphic will now wrongly scale and the aspect ratio is broken. Writer somehow "forgets" to keep the ratio.

The bug does not occur if you do following: before scaling again (step 4) uncheck "Relative" and uncheck "Keep ratio" and then check both buttons again. If you now increase the width percentage again (e.g. to 70%) the graphics scales perfectly. 

This means the problem is there if you scale a graphic the second/third/... time while keeping the buttons "Keep ratio" and "Relative" checked.

I cannot reproduce this bug with png graphics, but jpg and eps graphics are affected.

LibreOffice Version: 4.1.4.2, Build ID: 410m0(Build:2)
System: Ubuntu 13.04 64-bit Intel, Gnome 3.
Comment 1 Gerry 2014-04-03 11:06:05 UTC
Exactly the same problem described in the bug description seems to affect also scaling of text frames (Insert->Frame)
Comment 2 Gerry 2014-04-11 17:51:50 UTC
Most recent version is also affected by this bug:

Version: 4.2.3.3
Build ID: 882f8a0a489bc99a9e60c7905a60226254cb6ff0
Comment 3 Mike Kaganski 2014-04-20 01:32:35 UTC
REPRODUCIBLE with 3.3.0.4-4.2.4.1 under Win7x64, and 3.2.3.3 under Ubuntu 13.10 x64 -> NEW.
Also REPRODUCIBLE with OOo 3.3.0 -> setting version accordingly.

Reproducible with PNG images as well.
NOT reproducible if in step 2 of comment 0 you also check "Relative" for Height.
Comment 4 harryparry2011 2014-04-25 21:21:56 UTC
Confirmed under LO V.4.2.3.3 Build-ID: 882f8a0a489bc99a9e60c7905a60226254cb6ff0
Win7 Home 64bit
Comment 5 Matthias Basler 2014-06-20 11:29:33 UTC
I can confirm this with the sample document and LibO 4.3.0.1 (RC1) on Win7 HP.

I can also reproduce this with the same .jpg file in a blank new document.

I can also reproduce it with a newly created image of the same size (256x194px) with both JPG and PNG version and with own photos. The effect is most obvious for images which are far from quadratic such as this business card.

Um ... given that resizing images is a very common task in a word processing application I personally would give this issue a high priority. I am quite sure I stumbled upon this issue already before (in production use), but back then I thought I had done something wrong.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.