Bug 113934 - Bad image quality after compression to jpg/png
Summary: Bad image quality after compression to jpg/png
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-19 15:53 UTC by Telesto
Modified: 2017-12-24 16:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (35.07 KB, application/vnd.oasis.opendocument.text)
2017-11-19 15:53 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2017-11-19 15:53:44 UTC
Description:
Image looses quality when using image compression (in multiple cases, especially when reducing the image resolution)

Steps to Reproduce:
1. Open the attached file
2. Right click the image -> Compress image
3. Choose JPG, reduce the image resolution to for example 200dpi 

The only case where it certainly doesn't happen is when exporting to PNG (aty any compression) without reducing the image resolution.

Actual Results:  
Image looses quality

Expected Results:
Shouldn't happen


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 6.0.0.0.alpha1+
Build ID: b3f1d199a72ce87cb65ddaeac922564f57da6a4d
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-11-06_00:10:53
Locale: nl-NL (nl_NL); Calc: CL

and in 
4.2.0.4


User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 1 Telesto 2017-11-19 15:53:58 UTC
Created attachment 137858 [details]
Example file
Comment 2 Xavier Van Wijmeersch 2017-11-20 16:11:50 UTC
I did not use your example (bad quality) but made my self a screenshot, imported in writer and did follow the steps.
I cannot reproduce a bad compressed image at 200 dpi, but with 96 dpi its ugly

Version: 6.0.0.0.alpha1+
Build ID: dfc45f0abab98a1ce977c6ed95dfa07c185b6d11
CPU threads: 8; OS: Linux 4.14; UI render: default; VCL: kde4; 
Locale: nl-BE (en_US.UTF-8); Calc: group
Comment 3 Buovjaga 2017-11-20 20:15:01 UTC
What do you mean "reduce" to 200? The apparent dimensions in the info is 145 DPI.

Anyway, why wouldn't it lose quality, if you reduce the DPI? I would expect it to lose quality.
Comment 4 Dieter 2017-11-20 20:39:25 UTC
I tried the following

1. Inserted a picture in writer (DPI 180)
2. Compressed this picture to 96 DPI
3. Compressed the original picture to 96 DPI with IrfanView and insert this picture in writer
4. Made a comparisson between those two pictures, but couldn't find a difference.

So I would say it's a bug, if the comparisson with writer produces less quality than a compression with other programs. But for me that wasn't the case.
Comment 5 Jean-Baptiste Faure 2017-12-24 16:35:19 UTC
According to comments #3 and #4 closing as NotABug.

Feel free to reopen if you disagree.

Best regards. JBF