Bug 45774 - Resizing .emf picture via relative option distorts the image size.
Summary: Resizing .emf picture via relative option distorts the image size.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.4.5 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 05:52 UTC by Poustre Lakos
Modified: 2013-11-27 22:59 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
screenshots (335.31 KB, application/x-gzip)
2012-02-08 07:50 UTC, Poustre Lakos
Details
EMF image (36.40 KB, image/x-emf)
2012-05-29 03:26 UTC, Poustre Lakos
Details

Description Poustre Lakos 2012-02-08 05:52:32 UTC
Problem description: 
When resizing an image by choosing the percentage option for a SECOND time (the first resize works fine), the image gets distorted.

Steps to reproduce:
1. Right click on image, choose picture and resize by checking "relative" and "keep ratio".
2. The image is resized correctly. Now resize again.
3. Witness the mess.

Current behavior:
When resizing a second time, the image ratio and size go all wrong.

Expected behavior:

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0
Comment 1 Poustre Lakos 2012-02-08 07:50:50 UTC
Created attachment 56753 [details]
screenshots
Comment 2 Poustre Lakos 2012-02-08 07:51:44 UTC
I am testing this with .png images and it does not occur. The bug occurs with .emf images. Resizing by changing inches (i.e not using the relative option) works fine as well.

I have attached three screenshots, one is the initial size (at 61%), second is the first resize (to 76%), and the third is the messed up second resize (to 81%).
Comment 3 sasha.libreoffice 2012-05-16 02:34:57 UTC
Thanks for bugreport
Please, attach emf picture itself
Comment 4 Poustre Lakos 2012-05-29 03:26:51 UTC
Created attachment 62197 [details]
EMF image
Comment 5 Poustre Lakos 2012-05-29 03:27:16 UTC
I submitted the image used for these screenshots.
Comment 6 sasha.libreoffice 2012-05-29 03:53:49 UTC
Thanks for attachment
slightly reproducible in 3.3.4 and 3.5.3 on Fedora 64 bit
ratio in percents indeed changes slightly each time we resize, but may be it is because of rounding number in percents. Especially seen when we change width to 1% and second time to 100%. But with png the same.
I right understand problem?
Comment 7 Valek Filippov 2012-07-08 08:53:04 UTC
Reproducible in 3.6beta2.
Offset from expected values seems to be above "rounding" error and overall "relative" makes weird calculations.


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.