I wrote a document with 3 images inserted. After exporting it the size grew from 750 kB in *.odt to 5 MB in *.pdf.
Hello, Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document. (Please note that the attachment will be public, remove any sensitive information before attaching it.) How can I eliminate confidential data from a sample document? https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F Thank you
It's also a matter of configuration. We have got 2 places to start the export to pdf. One of them has an icon which you can click on and the other is a menu item under file->export as->export as pdf. Latter one enables you to chose the compression rate. Chosing jpg-compression makes the file a lot smaller afterwards.
Created attachment 188854 [details] Sample for Export to pdf
[Automated Action] NeedInfo-To-Unconfirmed
Changed the component, has nothing to do with Base (database component). Then I tested the attached file (here with OpenSUSE 15.4 64bit rpm Linux and LO 7.5.5.2). Exporting the example file (167,4 kB) will show a *.pdf-file with 72,3 kB. So I couldn't find any buggy behavior. Please start File → Export As → Export As PDF and make a screenshot form PDF Options → General. Attach this screenshot here to have a look on the options you have chosen. PDF-Options here: Range → All (all other options aren't chosen) Images → JPEG Compression : 90% Images → Reduce Image Resolution : 150 dpi Watermark isn't chosen General → Create PDF Form (all other options aren't chosen) Structure → Export outlines (all other options aren't chosen)
Created attachment 188862 [details] with compression
Created attachment 188863 [details] lossless
have a look at the difference in the options
OK, with Images → Lossless compression I will get a file of 485 kB. But: I copied the image to GIMP and exported it there without compression to JPG. Got 463,9 kB. So this is the same the export does. We could say: Lossless compression shouldn't be available for images, which are included in the *.odt-file, because the images are just compressed in this file. The image you included is saved as 157,6 kB file (inside the odt-document) and will be blown up 463,9 kB. The export should better read the compression of the image and write it into *.pdf file with this compression if you choose "Lossless". This bug might be an enhancement, but the behavior at this moment is the behavior as I would expect.
This bug is a severe trap, because you do not expect that the size of the image inserted becomes multiplied when exporting. There is no reason to expand a compressed image under option 'lossless', because it does not yield more information.
I will set this one to NEW. Expanding a compressed image isn't expected with "lossless compression" chosen. There is no more information available as it is saved in the image inside the *.odt-file.
Not expanding a jpg-file is also lossless, because nothing is gained by expansion.
*** This bug has been marked as a duplicate of bug 99887 ***