Bug 161194 - Opening docx created by MS Word, CROPs to images are lost and images are just scaled in the frame
Summary: Opening docx created by MS Word, CROPs to images are lost and images are just...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-21 04:50 UTC by Nick e.g.
Modified: 2024-05-21 16:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
not reproduced with this DOCX sample that includes a cropped PNG (13.08 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-05-21 05:49 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick e.g. 2024-05-21 04:50:57 UTC
Description:
When opening documents created by MS Word that have cropped (not scaled) images, in Writer the crops are lost and the images are scaled to the frame created by the crops. 

Steps to Reproduce:
1. Create a document in MS Word, insert images and crop (not scale) those images
2. Save the Word document as a docx.
3. Open in Writer and observe the images have lost the crops and are instead warped by being scaled into the frames created by the crops.

Actual Results:
Images are warped by mis-scaling due to and not properly cropped.  

Expected Results:
Images should be cropped the same as in Word


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 2; OS: Windows 10.0 Build 26100; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 1 Stéphane Guillou (stragu) 2024-05-21 05:49:12 UTC
Created attachment 194236 [details]
not reproduced with this DOCX sample that includes a cropped PNG

I tested with this sample file created in MS 365, including a cropped PNG.
Rendered the same in:

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Can you please share a sample file? Did you possibly use an SVG? I think you might be seeing bug 160571.
Comment 2 m_a_riosv 2024-05-21 16:35:39 UTC
Or tdf#138455