Still can't get the size down enough for printing

So, I’m still wrestling with getting my 187 page book with many photos under 853 megs in LibreOffice because making a lossless pdf still comes in around 780megs and Amazon KDP limit is 650megs. I tried creating a flattened open document text file, but that was over 1900 megs. That really surprised me because I thought flattening would get rid of a ton of information.

I have already gone through each photo and resized each one to the print size and re-imported. But it didn’t get me down enough.

Any other options or suggestions?

Thanks in advance!

No, “flattened” means not “dropping any information”, but “instead of a ZIP with a bunch of XMLs, put everything - yes, everything - into a single XML file; in that process, don’t use ZIP packaging that makes XMLs smaller; and because the images are also put there, they are Base64-encoded, making them even larger”.

How did you resize your photos? With which software?

Depending on program and parameters, resizing won’t really decreasing picture volume if number of pixels is kept (i.e. dpi increases).

You must decide for a final pixel density depending on the “printing” process. For home printers, 300 dpi is common. Professional print shops prefer higher density. For screen display, e.g. Amazon Kindle, you can get down to ~100dpi (or even lower; check device screen density).

You can also play with colour depth. If your photos come from a high-end camera, you may have 16 bits per channel. Truncate to 8-bit channels, this will cut the volume in half.

Consider also compression format. Once you have set your dpi and size (in centimeters or inches), think about visible details. It is not necessary to keep all information present in the original if it can’t be rendered due to output device quantisation. You can then increase the lossy compression ratio.

Some format are more “aggressive” than others. JPEG 2K gives smaller files than JPEG. Experiment with compressed GIFF or WEBP. Of course, choose only a format supported by your print shop.

Thanks for explaining that.

Well, this is for a book, so i kept photos at 300dpi to maintain quality. Any that increased by changing size were then also reduced to 300.
My only last option seems to be saving it as jog pdf at 100 percent, but i believe that may compromise photos beyond what will look professional.

Thank you.

My 24×36 photos at ~300dpi 10×15cm are 3-4 MB in JPEG 2k (which has a higher compression ratio than JPEG for same or better perceived quality). So if you have 1 picture per page over 150 pages, this results in 450-600 MB for images only. Your margin is tiny if you don’t make a compromise.

You can gain a few 10s MB by removing all direct formatting. This is not a lot compared to the graphics weight but may allow to run just below the limit.

Another possible approach, but that depends on your printshop, is to provide separately the document and the pictures (in the same directory) if you link the images instead of embedding them in the document.

Thanks. I am completely new to this area. How do i remove all the direct formatting?

To remove direct formatting and keep your present formatting, you must apply styles instead. You’d use mainly paragraph and character styles. Styles are a collection of attributes to apply to an "object (here paragraph or word(s)). So, formatting is defined only once under some name and applied multiple times. Configuration is stored only once, contrary to direct formatting where the attributes are stored at every occurrence.

If you’re new to styles, read first the Writer Guide to get an idea about what they are and how you use them. Then think about what you need in your document. Consider your paragraphs can be grouped in broad “semantic” categories like headings, main discourse, comments, notes, examples, … Each category corresponds to one paragraph style (so that you ensure formatting consistency all over the document. Several built-in styles are intended for very common categories: Heading 1 to 10 for 10 levels of heading, Body Text for the main discourse, Footnote for, guess what?, footnotes. You can define as many custom styles as you need, but don’t exaggerate: usual documents never require rarely that 10 custom styles in addition to built-ins.


The same can be said for character styles: most used built-ins are Emphasis and Strong Emphasis (translated as italic and bold respectively). Here again, if you feel like creating more than 10 custom styles, think again about how you decompose your document.


There are also page styles but, apart from First Page (cover page) and Default Page Style, you must create your own layouts if you have a lot of differing “parts” with their own look, like legalese, TOC, Index or appendices.

Built-ins are not “locked”. You can customise them to fulfil your taste.

You should notice that none of the names I mention describe the visual look of styles. You suggest the intent or “significance” of the “object” (paragraph, word or page). This is called semantic styling and is far better that the “naive” approach of naming “Blue paragraph”. Take the example of italic which is used both for emphasis and foreign words. If your style is “Italic”, you can’t format separately important words and foreign words. Use different styles for different significances: in this case built-in Emphasis and to-be-created custom Foreign Word (and in the latter you can set language to None in order to silence spellcheck).

Thank you. I will read up on it.

At this point I have resized all images to actual print size and saved as jpegs, which has greatly reduced my document size to about 600megs. However, when I make a lossless pdf, the size is still over 700 megs. I may be forced to do the jpeg compression on the pdf but I really wanted to avoid that for quality sake.

Mmmh … Lossless compression does not make sense with PDFs. I guess that this choice starts from the expanded bitmap, thus losing any advantage of JPEG. Try choosing JPEG compression quality with 90%-95% factor. I suppose that even at 100% you’d still get the “original” JPEGs, i.e. something already compressed relative to the source image before JPEG conversion.

1 Like

Thanks. I thought that for a printed book, doing lossless compression would be the most desirable. If I do jpeg compression at 100% I’m under 300 megs. And that is probably what I will end up doing.

I don’t think so. Requesting lossless compression, you’d get the JPEGs at full resolution (because your images are JPEGs) with all the JPEG artefacts, e.g. contour “echoes” due to cosine transform. I don’t know which lossless compression algorithm(s) LO uses. RLE (run length encoding) won’t give much (and perhaps increase the size of the file); LZW is not really adapted to real-life pictures but indeed reduces file size (perhaps 20%); Huffmann has poor performance here.

If JPEG 100% reduces file size by 50%, this illustrates the “danger” of JPEG where successive re-encodings without the slightest edit degrades image quality.