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: RESOLVED DUPLICATE of bug 160571
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-11-20 17:15 UTC (History)
3 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
Comment 3 QA Administrators 2024-11-18 03:15:49 UTC Comment hidden (obsolete)
Comment 4 Nick e.g. 2024-11-19 06:39:00 UTC
Yes, all the images I was working with were SVGs, so it does appear that this is another instance of bug 160571.

I tested with EMF images (and PDF from Mac) and those did not produce the same loss of cropping that the SVGs did.

I was also able to confirm that the bug does not exist in older versions of Writer as I tested on an older Ubuntu system I have.

Thanks!
Comment 5 QA Administrators 2024-11-20 03:17:07 UTC Comment hidden (obsolete)
Comment 6 raal 2024-11-20 17:15:17 UTC

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