Bug 103910 - Huge increase in file size of pdf exported
Summary: Huge increase in file size of pdf exported
Status: RESOLVED DUPLICATE of bug 101458
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Marco Cecchetti
Keywords: bibisected, bisected, regression
Depends on:
Reported: 2016-11-13 16:58 UTC by epiparo
Modified: 2016-11-30 10:08 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

Test case... (8.77 MB, application/vnd.oasis.opendocument.text)
2016-11-13 17:02 UTC, epiparo
PDF generated with LO 5.0 (2.49 MB, application/pdf)
2016-11-13 17:06 UTC, epiparo
PDF generated with LO 5.1 (7.17 MB, application/pdf)
2016-11-13 17:10 UTC, epiparo

Note You need to log in before you can comment on or make changes to this bug.
Description epiparo 2016-11-13 16:58:02 UTC
In version 5.1 and 5.2, on various platform (windows and linux), file size of exported pdf increased hugely with respect to that of the files exported with version 5.0 and below. Perhaps it was introduced an error in png images management.

Steps to Reproduce:
1.Export pdf with writer in LO 5.0
2.Export pdf, with the same file, with writer in LO 5.1 and above
3.The second one, if the source contains several images, may be more than twice larger than the former.

Actual Results:  
The sizes of the pdf exported with newer version of Libreoffice may be more than twice larger than that of the pdf files obtained with previous versions.

Expected Results:
File size must be equal or similar. So big file can no more uploaded to corporate server.

Reproducible: Always

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0
Comment 1 epiparo 2016-11-13 17:02:12 UTC
Created attachment 128729 [details]
Test case...

Test-case to see how larger is the pdf exported with LO 5.1 and above with respect to LO 5.0...
Comment 2 epiparo 2016-11-13 17:06:30 UTC
Created attachment 128730 [details]
PDF generated with LO 5.0

PDF file generated with writer in LibreOffice 5.0
Comment 3 epiparo 2016-11-13 17:10:00 UTC
Created attachment 128732 [details]
PDF generated with LO 5.1

PDF file generated with Writer in LibreOffice 5.1: 7.17MB vs 2.49MB!
Comment 4 Xisco Faulí 2016-11-14 10:00:51 UTC
I can reproduce it in

Build ID: fef32a42c8bd8fd640d6c9cdc2f839fb43ad490c
CPU Threads: 4; OS Version: Linux 4.8; UI Render: GL; VCL: gtk3; Layout Engine: new; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

but not in

Build ID: 2851ce5afd0f37764cbbc2c2a9a63c7adc844311
Locale: ca_ES

Seems different to bug 99723
Comment 5 Aron Budea 2016-11-15 06:37:51 UTC
PDF size is still okay in, but large in
Comment 6 epiparo 2016-11-16 20:43:49 UTC
> PDF size is still okay in, but large in
OK, I forgot that in version the png images in exported pdf were instead awfully corrupted...(In reply to Aron Budea from comment #5)
Comment 7 raal 2016-11-18 23:33:23 UTC
This seems to have begun at the below commit.
Adding Cc: to Marco Cecchetti ; Could you possibly take a look at this one? Thanks

author	Marco Cecchetti <marco.cecchetti@collabora.com>	2016-02-19 17:12:49 (GMT)
committer	Michael Meeks <michael.meeks@collabora.com>	2016-02-24 14:47:56 (GMT)
commit eab3c3ab9da5f0282df43d2f4bfbf17f7a4f8fe3 (patch)
tree c4773fdf4200df2aa948bf953f0cb46caa689b54
parent 8a039afb1f3f345c748b2e7cc9b76ca030c23abb (diff)
tdf#97662 - Avoid JPEG compressing de-compressed PNG.
 29ac150d380623b25d45bdbc69238a5e2cc1bc03 is the first bad commit
commit 29ac150d380623b25d45bdbc69238a5e2cc1bc03
Author: Norbert Thiebaud <nthiebaud@gmail.com>
Date:   Sat Feb 27 17:04:01 2016 -0800

    source eab3c3ab9da5f0282df43d2f4bfbf17f7a4f8fe3
 git bisect log
# bad: [6380ca07b05f68dedcaa379302cfe1fa478571c4] source 60b74fe1775e647545d2da1fcc58a4c63ec18aa5
# good: [1f670510f08cb800cbae2a1dd6ea70d3542e4721] source 49c2b9808df8a6b197dec666dfc0cda6321a4306
git bisect start 'origin/master' 'oldest'
# bad: [38f37b8ec1a2d199bb957cfd2581df7d1b273b74] source c0da1080b61a1d51654fc34fdaeba373226065ff
git bisect bad 38f37b8ec1a2d199bb957cfd2581df7d1b273b74
# good: [6998931a34ad75eb555f882fbed223e585548721] source 1fbd073828ef52f5206aed4643226bae9fb85f4f
git bisect good 6998931a34ad75eb555f882fbed223e585548721
# good: [b283fbadb387862ea0f09058430317906e1a78b5] source 1fc4cb57755cdfb9ab65c112435997874fb057cd
git bisect good b283fbadb387862ea0f09058430317906e1a78b5
# good: [06c6e9147b4de27ea6a67a02a7b14b24a93fea29] source 0f8f733eaf54c00f79d086c2b2867c7a8b1bcc6c
git bisect good 06c6e9147b4de27ea6a67a02a7b14b24a93fea29
# good: [723bc73a30d9baa3e4537310bb8d5d7048ebbd71] source 70ca225505922f74aca9480146b0f2ec207ca4ee
git bisect good 723bc73a30d9baa3e4537310bb8d5d7048ebbd71
# bad: [b3dadc099df5292288606017b20a538c305cde47] source 015b2cce565b335dfb644ea1dfe44dede8d60815
git bisect bad b3dadc099df5292288606017b20a538c305cde47
# good: [9203b3bed794c2ac9e7ee9bef8fa88c016ca94de] source d79ce8ba8f9e2411ab70b5c9d2ea0bb6b4f4e84e
git bisect good 9203b3bed794c2ac9e7ee9bef8fa88c016ca94de
# bad: [2a0cfe2bb18859d91e1f94278a9acd50be4b8c05] source 4929b451446a96e3bb9a56d2a8963d248f93aaea
git bisect bad 2a0cfe2bb18859d91e1f94278a9acd50be4b8c05
# good: [2daa34a0414fe85f1e27e27b340687b2d1bef51c] source 8a039afb1f3f345c748b2e7cc9b76ca030c23abb
git bisect good 2daa34a0414fe85f1e27e27b340687b2d1bef51c
# bad: [87b0f5a10ebc28ece8c2ce17998ab33b2c217ab7] source a0c700b1493c7b51540d1e77b44d1edd9bf920f0
git bisect bad 87b0f5a10ebc28ece8c2ce17998ab33b2c217ab7
# bad: [017e9f2b1954b32b5f30f93e05c61481a6dec8d6] source cef666d8c376d06b4a32566f83496124472b2201
git bisect bad 017e9f2b1954b32b5f30f93e05c61481a6dec8d6
# bad: [3b4dbecd3fa96dc1b0723b4ff20693d186238368] source b50071c817657866f8b22873be26d34970005a2d
git bisect bad 3b4dbecd3fa96dc1b0723b4ff20693d186238368
# bad: [29ac150d380623b25d45bdbc69238a5e2cc1bc03] source eab3c3ab9da5f0282df43d2f4bfbf17f7a4f8fe3
git bisect bad 29ac150d380623b25d45bdbc69238a5e2cc1bc03
# first bad commit: [29ac150d380623b25d45bdbc69238a5e2cc1bc03] source eab3c3ab9da5f0282df43d2f4bfbf17f7a4f8fe3
Comment 8 Danny 2016-11-30 10:08:37 UTC
PNGs are no longer recompressed as JPEG, see bug 101458. So I tentatively mark this as a dupe.

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