Bug 101212

Summary: Compression and cropping of images problematic
Product: LibreOffice Reporter: Thomas Maeder <thms.maeder>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: medium    
Version: 5.1.4.2 release   
Hardware: All   
OS: macOS (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: File with pictures & comments describing operations & results

Description Thomas Maeder 2016-07-29 23:00:11 UTC
Created attachment 126479 [details]
File with pictures & comments describing operations & results

There are several bugs in the image handlers for cropping and compression, especially when doing both, e.g. compressing a cropped image with downsampling.

Steps to reproduce & comments: see attachment = LO Writer .odt file, corresponding sections:
1) Original PNG image, 254 dpi

2) Original image (1) converted to JPEG without downsampling: works OK, only cosmetic
bug (original size displayed incorrectly in compression dialog box)

3) Original image (1) converted to JPEG with downsampling to 150 dpi: works apparently OK, but, in addition to bug seen in (2), the "original size" of the image is very small, whereas it should not be changed (only the resolution should be reduced).

4) Original image (1), cropped and converted                                  to JPEG without downsampling: works OK, as (2), but, in addition to incorrect original size, indicated display resolution in compression dialog is incorrect.

5) Cropped image from (4), now compressed with downsampling to 150 dpi: strange behaviour…
Comment 1 Alex Thurgood 2016-08-01 07:25:16 UTC
The several different problems you report here all seem to already mentioned in bug 56468

Setting as DUP of that bug.

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