Does LibreOffice compress images? Not on save, and the Compress Image default more than quadrupled our screenshot
On this page
- Saving doesn't compress the picture
- The Compress Image dialog opens at 80, not the 90 its help says
- The dialog's 300 DPI box can make a picture bigger
- Impress can shrink every picture at once. Writer and Calc can't.
- PDF export re-encodes photos at JPEG 90 by default
- Shrink the picture before you insert it
- How we measured
We put a 6,535,144-byte Pixel 8 photo into LibreOffice 26.8.3 for Linux, saved the document as ODT, DOCX, ODP and PPTX, and unzipped all four. The picture inside was 6,426,624 bytes every time, the first 98 percent of our file (GPS position included). Saving a Writer or Impress document in LibreOffice 26.8.3 doesn't compress its pictures.
Four things do: the Compress Image dialog, Minimize Presentation, PDF export, and making the picture small before you insert it. The dialog's defaults turned a 310 KB screenshot into a 1.3 MB one, and PDF export at its defaults re-encodes photos you already compressed. For a Writer or Calc document with many pictures, the last way is usually the fix.
Saving doesn't compress the picture
We inserted each picture from a script with the command that Insert > Image runs, saved, unzipped and compared the stored file with the original:
| Picture | File size | Stored in the document |
|---|---|---|
| Pixel 8 photo, JPEG | 6,535,144 B | 6,426,624 B |
| Desktop screenshot, PNG | 310,366 B | identical |
| The 1,800 x 1,200 photo as JPEG, GIF, TIFF and BMP | 0.85 to 6.5 MB | identical (the zip deflates TIFF and BMP) |
| The same photo as WebP, quality 80 | 372,860 B | a PNG of 3,259,995 B |
| AVIF, HEIC | 343,468 and 405,068 B | nothing inserted |
The Pixel 8 photo lost its last 108,520 bytes, where the file keeps its HDR gain map. Its GPS position and Display P3 profile stayed, so an emailed document still says where the photo was taken.
The WebP came out 8.7 times bigger, and our PowerPoint test saw the same rewrite at 6.5 times. AVIF and HEIC files weren't inserted at all. The install registers a WebP import filter and none for HEIC, HEIF, AVIF or JPEG XL, and on 29 November 2026 the requests for AVIF and HEIC were still open. Convert a HEIC file first with HEIC to JPG, and a WebP file with WebP to JPG to avoid the PNG. Iminify doesn't read AVIF, so export it as JPG or PNG from the app that made it.
The Compress Image dialog opens at 80, not the 90 its help says
Right-click a picture and choose Compress, or use Format > Image > Compress. It handles one picture at a time. LibreOffice's help page says "The default value of 90 produces very good results". The dialog opens at JPEG quality 80 and PNG compression 6 (layout file) with 300 DPI ticked (code), and bug 147456 was filed in 2022 for the gap.
On the Pixel 8 photo, placed 6.69 inches (17 cm) wide, OK at the defaults replaced it with a 2,007 x 1,509 JPEG of 1,020,001 bytes, 16 percent of the original, without GPS position, camera model or colour profile. Against the dialog's own quality-100 picture it scored 79.8 on SSIMULACRA 2, whose scale tops out at 100 and calls 80 "very high quality". On a photo with more pixels than the page needs, the defaults are a fair one-click shrink.
The dialog's 300 DPI box can make a picture bigger

"Change image resolution to" is ticked by default. DPI here means the picture's pixels per inch at its size on the page, and a picture under 300 is enlarged to reach it. The dialog's Image Information shows the DPI as placed. Our 1,440 x 900 screenshot, placed 6.69 inches wide, is 215 DPI. The dialog offered 2,007 x 1,254 and stored a 1,311,019-byte PNG, 4.2 times the file. A 1,800 x 1,200 JPEG of 852,461 bytes at 269 DPI was enlarged to 2,007 x 1,338 pixels: more pixels, fewer bytes (513,061).
Bug 132657 was filed in 2020 for this enlargement and was still open on 29 November 2026.
With the box unticked, the screenshot was repacked losslessly to 251,874 bytes (19 percent smaller, no pixel changed) and the JPEG was re-encoded at quality 80 to 426,911 bytes at its own size, scoring 75.6 on SSIMULACRA 2 against the original. If Width is bigger than the picture's actual pixels, untick the box.
Impress can shrink every picture at once. Writer and Calc can't.
In Impress, Tools > Minimize Presentation opens a five-step wizard with four presets: Email (96 DPI, JPEG 70), Web (150 DPI, 75, the default), Print (300 DPI, 80) and High fidelity (resolution unchanged, 80). On the Pixel 8 photo placed 8.23 inches wide, Web stored a 1,235 x 930 JPEG of 336,914 bytes, and the file went from 6.46 MB to 0.42 MB.
Writer and Calc have nothing like it. Searching the 26.8.3 menus and command registry for compress, minimize, optimize, shrink and downsample found only two commands for pictures, Compress Image and Minimize Presentation. Bug 34133 asks for a wizard "like Impress has" and had 94 comments on 29 November 2026.
PDF export re-encodes photos at JPEG 90 by default

File > Export as PDF opens with JPEG compression at 90% and "Change image resolution" ticked at 300 DPI. The Pixel 8 photo became a 2,009 x 1,513 JPEG (the Compress dialog made 2,007 x 1,509) and a 1.43 MB PDF. The same document at other settings (MB are million bytes):
| Setting | |
|---|---|
| Default: JPEG 90, 300 DPI | 1.43 MB |
| JPEG quality 80 | 1.03 MB |
| 150 DPI | 0.373 MB |
| 75 DPI | 0.0916 MB |
| Resolution box unticked | 5.01 MB |
| Lossless, box ticked | 8.11 MB |
| Lossless, box unticked | 6.43 MB |
Lossless with the box ticked is the trap. It stores the decoded pixels, so the PDF was bigger than the 6.5 MB JPEG it started from. Untick the box too and LibreOffice embeds the JPEG's own bytes, the picture as stored in the document, GPS position included, unless the picture is cropped, CMYK or tiny, which it always re-encodes. With lossless off and the box unticked, a JPEG goes in untouched only if it is already small for its pixels, under 0.4 bytes a pixel at quality 90 (source). The pictures LibreOffice re-encodes for these PDFs and for the minimizer's Web preset carry no GPS position.
A picture that isn't a JPEG becomes one only when that JPEG is no larger than a losslessly packed copy of its pixels (code). Our screenshot stayed lossless at the default (0.210 MB) and became a JPEG at quality 80 (0.205 MB). A picture you already compressed gets no pass at the defaults: the 1,087,120-byte JPEG in the next section came out as a 1.24 MB PDF, and as a 1.09 MB one with the box unticked.
Shrink the picture before you insert it
For many pictures in Writer or Calc, the easiest route is the one before LibreOffice sees them. At 300 DPI a picture 6.69 inches wide needs 2,007 pixels (6.69 x 300), and resizing costs less than lowering the quality.
We sent the Pixel 8 photo to Iminify, which is ours, at its default Smart level as JPG, 2,007 x 1,509 pixels: 1,087,120 bytes, identical on a second run, scoring 80.9 against our own 2,007-pixel reduction of the photo. Writer stored Smart's file byte for byte, and the ODT weighed about 1.14 MB. Compress JPEG has a Resize setting; Compress PNG takes screenshots.
A document that already exists can be fixed in place, because ODT and DOCX are zip files. Work on a copy:
- Unzip it.
- Compress every file in Pictures (word/media in a DOCX) as JPG or PNG, keeping each file's name and format.
- Zip it again. In an ODT the file called mimetype must come first and stay uncompressed, as the ODF 1.3 packaging spec says.
A Writer file with the Pixel 8 photo and a Pixel 8 Pro photo (13,056,759 B) went from 19.3 to 2.13 MB (DOCX: 19.2 to 2.09 MB) after Smart at 2,007 pixels wide, and LibreOffice opened and exported both rebuilt files.
How we measured
LibreOffice 26.8.3 (build 26.8.3.1) for Linux x86-64 from The Document Foundation, in a Docker container. A script inserted each picture into Writer or Impress with .uno:InsertGraphic and saved it, and we compared SHA-256 of the unzipped parts and read the PDFs with pdfimages. In a virtual screen we drove the dialogs with mouse clicks.
The photos are from Wikimedia Commons (Pixel 8, Pixel 8 Pro); the screenshot and the other photo are Iminify's published showcase files. We ran Iminify through its API on 29 November 2026 and score with SSIMULACRA 2 from libjxl 0.12.0. The dialog's picture is scored against its own quality-100 picture, because LibreOffice scales differently from our reduction. We ran the dialog, the minimizer, the PDF settings and Iminify twice, and the pictures came out the same each time.
Not tested: Windows and macOS builds, other Linux packages (their HEIC and AVIF support may differ), Calc and Draw, linked pictures, and Word opening the rebuilt DOCX.