Description: Background images stretched to the page are distorted. Sometimes they are widened. Sometimes they are reduced to a small in the top-left corner. Sometimes they are like they should be. Steps to Reproduce: Go to the Page style, select Area > Image > Import/Add > select an image. Then select the option “Stretched”. I don’t know why this bug occurs to some images and not to others. So I provide a document for each cases. Actual Results: Distortions. Expected Results: No distortion. Reproducible: Always User Profile Reset: No Additional Info: Version: 24.8.0.1 (X86_64) / LibreOffice Community Build ID: 6fd6cae02baed1e82d14ed2da1f2458092354dab CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win Locale: fr-FR (fr_FR); UI: en-US Calc: CL threaded
Created attachment 195442 [details] Writer document with distorted background images
This bug has been bibisected. 7e076c87b397ffd1a38e5482549a8258e50a31df is the first bad commit commit 7e076c87b397ffd1a38e5482549a8258e50a31df Author: Norbert Thiebaud <nthiebaud@gmail.com> Date: Sat Jun 8 11:59:24 2024 -0700 source c30c1d12f283e75fdcc5bb508a79a9d33a431d28 source c30c1d12f283e75fdcc5bb508a79a9d33a431d28 instdir/program/drawinglayerlo.dll | Bin 1495040 -> 1495040 bytes instdir/program/setup.ini | 2 +- instdir/program/svxcorelo.dll | Bin 9065984 -> 9066496 bytes instdir/program/version.ini | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-)
I found how the distortion happens. If previously the image was set to a custom position/size or as tiles, LO remembers the width/height settings and use it instead of stretching the image.
(In reply to Olivier R. from comment #2) > This bug has been bibisected. > 7e076c87b397ffd1a38e5482549a8258e50a31df is the first bad commit > commit 7e076c87b397ffd1a38e5482549a8258e50a31df Hyperlink doesn't work > Author: Norbert Thiebaud <nthiebaud@gmail.com> > Date: Sat Jun 8 11:59:24 2024 -0700 > > source c30c1d12f283e75fdcc5bb508a79a9d33a431d28 > > source c30c1d12f283e75fdcc5bb508a79a9d33a431d28 This commit is related to Impress an bug 153008
@Dieter: I just copied/pasted what git bisect said.
Seems I don't know what is expected: Page has a width of 21 cm and a height of 29,7 cm. Images are stretched to this width and height, if this images have a width from more than 21 cm and/or height from more than 29,7 cm. If a image is only defined as width 1 cm and height 1 cm it wont be stretched. Width and height have to be set much bigger, like 30 cm / 30 cm. Some images in your example are created for landscape orientation. How should this image appear on a background, fill the whole background and won't be stretched? The document you added doesn't show what you expect.
Created attachment 195827 [details] Document created with LO 7.5.7 (images are properly stretched) Document created with LO 7.5.7 (images are properly stretched)
Created attachment 195828 [details] Document created with LO 24.8.0.2 (images are NOT properly stretched) All images are made for portrait A4 format. Here is two PDF generated with two different LO versions. One with LO 7.5.7: images are properly stretched. One with LO 24.8.0.2: most of images are not properly stretched. If you open the ODT file provided with the version 24.8 of LO, images are not properly stretched, as the second PDF file shows it.
Thanks for reporting this issue. This is a duplicate of bug 161724 *** This bug has been marked as a duplicate of bug 161724 ***