Bug 101170 - FILESAVE: Opening and saving an rtf with an embedded jpeg leads to massive file size increase
Summary: FILESAVE: Opening and saving an rtf with an embedded jpeg leads to massive fi...
Status: RESOLVED DUPLICATE of bug 104288
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:rtf
Depends on:
Blocks: RTF
  Show dependency treegraph
 
Reported: 2016-07-28 11:03 UTC by philipp.schaefer
Modified: 2023-11-06 08:48 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
RTF-file with embedded jpeg (453.23 KB, application/msword)
2016-07-28 11:03 UTC, philipp.schaefer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description philipp.schaefer 2016-07-28 11:03:37 UTC
Created attachment 126445 [details]
RTF-file with embedded jpeg

Opening the attached file 'logo_only.rtf' and saving it again as an RTF-file lets the filesize explode from 454kB to almost 95MB.
Comment 1 Aron Budea 2016-07-29 05:55:48 UTC
Reproduced in LibreOffice 5.2.0.3 & 4.0.0.3/Windows 7. (opening original RTF in 3.6.0.4 doesn't display logo)

The RTF jpegblip in the 93MB file mostly consists of FFFFFFFF..

Intersting observation:
Resizing JPEG in the document with mouse produces weird results. If I try to increase horizontal size to the left a bit, size increases to the right instead. If I increase it a lot to the left, the logo moves.
Comment 2 QA Administrators 2018-07-19 02:41:53 UTC Comment hidden (obsolete)
Comment 3 BS Dev-Team 2018-07-19 08:03:44 UTC
Tested in LibreOffice 5.4.7 & 6.0.5/Windows 10.
File size still increases (500kB to 1MB).
Comment 4 BS Dev-Team 2018-11-06 08:29:24 UTC
Tested in LibreOffice 6.1.2.1/Windows 10.
File size still increases (500kB to 95MB).
Comment 5 Xisco Faulí 2018-11-12 15:37:32 UTC
Still reproducible in

Version: 6.2.0.0.alpha1+
Build ID: 3a99ae072ac170ebed8d1f5bf65913d3412fab67
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 6 QA Administrators 2019-11-14 03:43:16 UTC Comment hidden (obsolete)
Comment 7 BS Dev-Team 2019-11-26 13:51:37 UTC
Reproduced in LibreOffice 6.3.3.2
File size still increases (454kB to 94,801kB).

Version: 6.3.3.2 (x64)
Build-ID: a64200df03143b798afd1ec74a12ab50359878ed
CPU-Threads: 8; BS: Windows 10.0; UI-Render: GL; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: CL
Comment 8 QA Administrators 2021-11-26 04:43:55 UTC Comment hidden (obsolete)
Comment 9 Gabor Kelemen (allotropia) 2022-01-27 09:25:00 UTC
Still a problem in

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: eb69767d7c1bb8e6e780fd9503f08c9d7f5ecb45
CPU threads: 13; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded
Comment 10 clay0 2023-07-31 09:28:48 UTC
If you go to:
https://nextcloud.documentfoundation.org/s/QkpeRXTG4RN5nwk
and try to download the "Getting Started Guide" as ".rtf" it's a 1,1 GB download!
Comment 11 Gabor Kelemen (allotropia) 2023-11-06 08:48:19 UTC
Seems to be much better now after 

tdf#104288: rtf export: drop \nonshppict on export

Original RTF file size: 453 kB (464,110 Bytes)
Saved RTF file size: 922 kB (944,582 Bytes)

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a09b59cdbde2ab92bbbb6737337b74a7a62b17f1
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

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