Bug 134381 - FILEOPEN DOCX: Images overlay and rotate
Summary: FILEOPEN DOCX: Images overlay and rotate
Status: RESOLVED DUPLICATE of bug 134841
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Images
  Show dependency treegraph
 
Reported: 2020-06-29 08:02 UTC by NSO LibreOffice Team
Modified: 2020-12-03 16:24 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Images rotate or Filp (2.60 MB, application/vnd.oasis.opendocument.text)
2020-06-29 08:02 UTC, NSO LibreOffice Team
Details
Very simple reproducer document (617.01 KB, application/vnd.oasis.opendocument.text)
2020-12-03 13:36 UTC, NISZ LibreOffice Team
Details
The original document and its docx version in LO 6.4.0 (207.07 KB, image/png)
2020-12-03 13:37 UTC, NISZ LibreOffice Team
Details
The original document and its docx version in LO 7.0.3 (403.18 KB, image/png)
2020-12-03 13:39 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NSO LibreOffice Team 2020-06-29 08:02:47 UTC
Created attachment 162493 [details]
Images rotate or Filp

Description:
I'm using LibreOffice 7.0.0.1.beta1 in the China locale and finding a very strange bug. I'll try to be as clear as possible in the description.
New LibreOffice Writer text document, then and insert two pictures and rotate one of them, finally Save as Docx and open with LibreOffice 6.4.4.2, Only the overlapped parts of the image are displayed, and the rotated image is identified as drawing objects in the navigator.


Steps to Reproduce:
1.New LibreOffice Writer text document.
2.Insert two pictures in jpg format.
3.Right-click the upper picture -> Rotate or Filp
4.Save as OfficeOpenXML (*.docx) or Word2007-365 (*.docx) format.
5.Open the document with LibreOffice 6.4.4.2 again. 
6.Only the overlapped parts of the image are displayed, and the rotated image is identified as drawing objects in the navigator.

Actual Results:
Only the overlapped parts of the image are displayed, and the rotated image is identified as drawing objects in the navigator.

Expected Results:
Display the normal image size. The rotated image is still images in the navigator.

Reproducible: 
Always

Additional Info:
Version: 6.4.4.2(x64)
Build ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
Environment:CPU threads: 12; OS: Windows 10.0 Build 18363; 
UI render: GL; VCL: win;
Locale: zh-CN (zh_CN);  UI-Language: en-US
Calc: threaded
Comment 1 Dieter 2020-07-01 10:26:37 UTC
I confirm it with

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 33a720ab802491f15b247e09755cd36205b6f435
CPU-Threads: 4; BS: Windows 10.0 Build 19041; UI-Render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 2 NISZ LibreOffice Team 2020-12-03 13:36:59 UTC
Created attachment 167793 [details]
Very simple reproducer document
Comment 3 NISZ LibreOffice Team 2020-12-03 13:37:42 UTC
Created attachment 167794 [details]
The original document and its docx version in LO 6.4.0
Comment 4 NISZ LibreOffice Team 2020-12-03 13:39:11 UTC
Created attachment 167795 [details]
The original document and its docx version in LO 7.0.3

Looks like not only the overlapping parts are visible now. The rotated image is wrong size and position, that's bug #123569
Comment 5 NISZ LibreOffice Team 2020-12-03 16:24:09 UTC
In 7.0 the rotated image is visible after:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=fc0bff85f3338cb4fe8f4d42421cb69801cb3abb

author	Luboš Luňák <l.lunak@collabora.com>	2020-05-13 13:08:00 +0200
committer	Luboš Luňák <l.lunak@collabora.com>	2020-05-14 11:57:30 +0200

cache results of Skia's drawTransformedBitmap() (tdf#132438)

But only with Skia backend on Windows. 

If Skia is disabled the display of images was fixed by:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=fa47f9781fff89698a68353f9f37ea3ac6bda43c

author	Caolán McNamara <caolanm@redhat.com>	2020-07-16 11:10:53 +0100
committer	Caolán McNamara <caolanm@redhat.com>	2020-07-16 15:14:23 +0200

tdf#134841 image totally clipped out

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