Bug 139998 - FILEOPEN DOC: Image dimensions wrong form image with border
Summary: FILEOPEN DOC: Image dimensions wrong form image with border
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOC-Images
  Show dependency treegraph
 
Reported: 2021-01-29 13:40 UTC by Telesto
Modified: 2023-05-27 02:03 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (879.00 KB, application/msword)
2021-01-29 13:40 UTC, Telesto
Details
Source ODT (876.50 KB, application/vnd.oasis.opendocument.text)
2021-01-29 13:40 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-01-29 13:40:19 UTC
Description:
DOC: Image dimensions wrong form image with border

Steps to Reproduce:
1. Open the attached file
2. Notice squeezed images (opens fine in MSO)

Actual Results:
Squeezed

Expected Results:
Proper


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
7.2

and in
4.4.7.2

and in
Version: 4.3.7.2
Build ID: 8a35821d8636a03b8bf4e15b48f59794652c68ba

but not in
4.2
Comment 1 Telesto 2021-01-29 13:40:33 UTC
Created attachment 169270 [details]
Example file
Comment 2 Telesto 2021-01-29 13:40:54 UTC
Created attachment 169271 [details]
Source ODT
Comment 3 BogdanB 2021-01-30 06:05:09 UTC
Confirm this

Tested with Version: 5.4.7.2 -> not working
Build ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk2; 
Locale: ro-RO (ro_RO.UTF-8); Calc: group

Working in
Version 3.6.7.2 (Build ID: e183d5b)
Comment 4 Aron Budea 2022-06-11 04:41:44 UTC
This regressed in two steps. First the image wasn't shown at all after the following commit in 4.2 (commit ported from AOO):

https://cgit.freedesktop.org/libreoffice/core/commit/?id=2e5167528f7566dd9b000e50fc1610b7bf99132a
author		Armin Le Grand <alg@apache.org>	2013-10-31 14:43:21 +0000
committer	Caolán McNamara <caolanm@redhat.com>	2013-11-05 15:24:18 +0000

"Resolves: #i123500# unified Graphic processing to use GraphicPrimitive2D"

Then that got fixed with this commit in 4.4, but the image was now imported squashed:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=6d431ffb682d0e64b75b6267f369822ff0b0617e
author		Michael Stahl <mstahl@redhat.com>	2014-05-24 18:02:31 +0200
committer	Michael Stahl <mstahl@redhat.com>	2014-05-24 18:34:06 +0200

"fdo#77454: fix WW8 import/export of negative image crop

The negative crop values were imported as large positive values, which
caused the image to be rendered with 1 pixel width after commit 2e5167528f7566dd9b000e50fc1610b7bf99132a."
Comment 5 Justin L 2023-05-27 02:03:02 UTC
repro 7.6+