Bug 116849 - JPEG export as selection crops too much (or compression makes it seem off)
Summary: JPEG export as selection crops too much (or compression makes it seem off)
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0 target:7.3.2
Keywords: bibisected, regression
Depends on:
Blocks: Graphics-Export
  Show dependency treegraph
 
Reported: 2018-04-06 14:21 UTC by Buovjaga
Modified: 2023-09-06 22:20 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Source file (9.75 KB, application/vnd.oasis.opendocument.graphics)
2018-04-06 14:21 UTC, Buovjaga
Details
Screenshot comparing JPEG exports from 3.3.0 vs. 6.2 (47.99 KB, image/png)
2018-07-14 20:09 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Buovjaga 2018-04-06 14:21:22 UTC
Created attachment 141169 [details]
Source file

1. Open attached ODG
2. Ctrl-A to select all
3. File - Export - Jpeg (tick Selection!!)
4. Default settings, OK

The bottom line in the bottom box is cropped away.

Not yet seen in 3.6.7.
Already in 4.3.0 (tested on Win)

Workaround is to export the full page instead of selection in some lossless format like PNG, edit in GIMP to crop how you like and export as JPEG.

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: 6acda2a36c9025e0d3fe94d6ca8788ab60c3203e
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on April 2nd 2018

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 1 raal 2018-04-07 15:59:48 UTC
repro 4.1, Linux
Comment 3 Roman Kuznetsov 2018-07-14 19:16:51 UTC
Buovjaga, I tried export only selection from your file into JPG and into PNG in LibreOffice 6.1.0.1 on Windows 10. I got the same result for these both.
Bottom line of bottom shape don't crop. There is line. Just border of image very close from this line.

Increase scale of image and look at bottom part of image (You can use GIMP).

My opinion -> WFM
Comment 4 Buovjaga 2018-07-14 20:09:51 UTC
Created attachment 143549 [details]
Screenshot comparing JPEG exports from 3.3.0 vs. 6.2

Maybe it is not cropping, but something changed in the JPEG compression? Earlier the bottom line was clear, but now it looks pale, like only antialiasing.

I did take another look at 3.6.7 and it is not full black in it either. 3.3.0 looks sharpest.
Comment 5 QA Administrators 2019-07-15 02:47:58 UTC Comment hidden (obsolete, spam)
Comment 6 QA Administrators 2021-07-15 03:36:40 UTC Comment hidden (obsolete)
Comment 7 Stéphane Guillou (stragu) 2023-09-06 22:20:31 UTC
Repro in 7.2.7.2, fixed in 7.3.7.2.

Bibisected the fix to Armin's a9f6d98859321e1b9029acc0c6e9347f4c1cf3b7 with linux-64-7.3 repo.

Not marking as a duplicate as bug 126319 was a 6.2 regression.

Thanks Buovjaga, Armin et al.!