Bug 162145 - Distortion of background images
Summary: Distortion of background images
Status: RESOLVED DUPLICATE of bug 161724
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected
Depends on:
Blocks: Area-Fill-Tab-Image
  Show dependency treegraph
 
Reported: 2024-07-22 15:41 UTC by Olivier R.
Modified: 2024-09-05 12:39 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer document with distorted background images (21.27 MB, application/vnd.oasis.opendocument.text)
2024-07-22 15:47 UTC, Olivier R.
Details
Document created with LO 7.5.7 (images are properly stretched) (2.80 MB, application/pdf)
2024-08-14 16:48 UTC, Olivier R.
Details
Document created with LO 24.8.0.2 (images are NOT properly stretched) (16.75 MB, application/pdf)
2024-08-14 16:56 UTC, Olivier R.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier R. 2024-07-22 15:41:44 UTC
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
Comment 1 Olivier R. 2024-07-22 15:47:19 UTC
Created attachment 195442 [details]
Writer document with distorted background images
Comment 2 Olivier R. 2024-07-22 15:48:13 UTC
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(-)
Comment 3 Olivier R. 2024-07-23 21:48:24 UTC
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.
Comment 4 Dieter 2024-08-13 10:36:51 UTC
(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
Comment 5 Olivier R. 2024-08-14 05:42:22 UTC
@Dieter:
I just copied/pasted what git bisect said.
Comment 6 Robert Großkopf 2024-08-14 15:55:40 UTC
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.
Comment 7 Olivier R. 2024-08-14 16:48:43 UTC
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)
Comment 8 Olivier R. 2024-08-14 16:56:07 UTC
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.
Comment 9 Xisco Faulí 2024-09-05 12:39:28 UTC
Thanks for reporting this issue. This is a duplicate of bug 161724

*** This bug has been marked as a duplicate of bug 161724 ***