Description: The aspect ratio isn't honored when using an external image area bitmap fill Steps to Reproduce: 1. Open Writer 2. Format -> Page - Area tab -> Bitmap 3. Add import 4. Check the scale checkbox 5. Press OK Actual Results: Image with odd dimensions Expected Results: Honoring the aspect ratio Reproducible: Always User Profile Reset: No Additional Info: Version: 6.1.0.0.alpha0+ Build ID: 818619b0f2f7813decb26d0b14362dec76a8ff37 CPU threads: 4; OS: Windows 6.3; UI render: default; TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2018-04-08_13:29:47 Locale: nl-NL (nl_NL); Calc: CL User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Created attachment 141232 [details] Example file
Repro. Arch Linux 64-bit Version: 6.1.0.0.alpha0+ Build ID: de07f40030bbd604bc42d58f0e954cca284a2646 CPU threads: 8; OS: Linux 4.16; UI render: default; VCL: kde4; Locale: fi-FI (fi_FI.UTF-8); Calc: group Built on April 21st 2018
Dear Telesto, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
It's as if the scale setting uses percentages of the width and height _of the page_ rather than of the original size of the picture, as documented[1]: "Scale: Mark to turn the height and width settings relative to original size." Default values are both 100%, so the image should have its original aspect ratio. [1]: https://help.libreoffice.org/7.6/en-US/text/shared/01/05210500.html Reproduced in: Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 579d144290c1617fdb38d09b30900a6bbe390b8d CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: fr-FR (en_AU.UTF-8); UI: en-US Calc: threaded
Currently, using the "scale" setting at 100% is equivalent to using "stretch". If you change the values to e.g. 50% / 50%, you can see that the image is stretched, *then* scaled. In my opinion, it should not stretch at all. Same in OOo 3.3 (in which we had "absolute" and "relative" options instead of "scale"). Inherited implementation error?
Created attachment 185721 [details] test ODG with various combinations of settings
Note that now in master, the description in the UI changed from "Scale" to "As percentage of the parent", which matches what it does currently (and the help page was changed accordingly). This was to fix bug 154019. Now, this ticket can stay open (and the summary changed) if the plan is to replace the current setting or add a new one to allow scaling the original image using percentages.