Squeezing a PDF can change the colour of the images inside it, and on one test file the amount depended on which tool did the squeezing and which reader you looked at afterwards. Short version of the numbers, all measured: macOS "Reduce File Size" moved a CMYK print photo by ΔE 4.57 (MuPDF) and 4.21 (poppler). Ghostscript /ebook scored 0.45 and 3.73 on the same image, which looks better until you notice why the two numbers disagree. An AdobeRGB-tagged image and a Lab image both stayed under 0.8 with both tools. DeviceN was not tested.
How the colour was measured
The test PDF has two A4 pages and ten kinds of embedded image, one each. Three of them matter here: a CMYK print JPEG, a JPEG with an AdobeRGB profile, and a Lab image, all cut from one landscape photo. That photo is "Lake Mountain Landscape.jpg" by Bonnie Moreland on Wikimedia Commons (CC0). The JBIG2 scan page in the file carries bytes from "Simplified Chinese Character Table (1986 new edition)" at the Internet Archive (Public Domain Mark 1.0). The rest is self-made, content fictional.
Each output was rendered at 150 DPI in two renderers, MuPDF and poppler. For every image, the average colour of its region was taken and CIE76 ΔE computed against the same region of the original. So ΔE here means "how far the whole patch drifted on average". It is not a print colour evaluation. One Apple-silicon Mac, one run per setting, one file.
The table
| Image | Tool | ΔE (MuPDF / poppler) | Status |
|---|---|---|---|
| CMYK print JPEG | macOS Reduce File Size | 4.57 / 4.21 | measured |
| CMYK print JPEG | Ghostscript /ebook | 0.45 / 3.73 | measured |
| AdobeRGB ICC JPEG | both of the above | 0.8 or under | measured |
| Lab image | both of the above | 0.8 or under | measured |
| CMYK, ICC, Lab | ImgIng, ebook preset | bytes identical, ΔE not computed | measured (hash) |
| DeviceN image | any | no sample built | not tested |
The macOS result is the cleaner one: both renderers put the shift at 4.2 to 4.6. Reading that as "the change is in the file, not in the reader" is an inference.
Why Ghostscript's 0.45 is not a clean bill
Ghostscript turned the CMYK image into DeviceRGB. Once the image is plain RGB, its colour is fixed in the file. The original is different. In this run the untouched CMYK region averaged about RGB (126, 121, 124) in MuPDF and (120, 114, 122) in poppler, so two readers already disagreed on what the file looks like. The converted file froze one of those looks. MuPDF's view is the one it ended up near (0.45), and poppler's view is 3.73 away.
Inference, not measured: a low ΔE under one renderer is not proof the image kept its colour. For a CMYK source, the number depends on which reader you picked as the reference. Checking against two is cheap and exposes the problem.
What a browser does to the same bytes
The same CMYK JPEG bytes, decoded by a browser, averaged RGB (102, 108, 118). Pillow gave the identical value. Against what the PDF readers show, the browser decode sits at ΔE 8.3. That is measured, and it is a statement about decoding this one JPEG in a browser, nothing else. The inference: a browser-side pipeline that decoded such a JPEG and wrote it back would start from a colour that is already off. No specific tool was tested for this.
One more measured oddity. Delete the /Decode entry from the image dictionary, leave the JPEG bytes alone, and all three renderers tried (MuPDF, poppler, Ghostscript) draw the patch near black, ΔE 49.3 against the original. No tool in this run turned the normal file into a negative. The failure only shows up when dictionary and bytes disagree, which is exactly the kind of detail a re-encoder has to carry over correctly.
The trade, in bytes
The cost side, measured on the same file: Ghostscript /ebook shrank it by 94.8% and macOS by 87.6%. The byte-preserving run used ImgIng https://imging.ai/ in a desktop browser with its ebook preset, and got 26.7%. Its result card reported that 7 images (3.10 MB) were not re-encoded, listing CCITT, colour or bit-depth protection, mask protection, JBIG2 and JPEG 2000. The documentation's rule is a list of exceptions, kept as they are whenever a browser can't re-encode them reliably: JPEG 2000, JBIG2, CCITT fax, CMYK print JPEG, and images needing full ICC, Lab or DeviceN colour management.
So the smaller files from Ghostscript and macOS are paid for with the colour moves above, and the 26.7% file keeps the CMYK bytes exactly as they were. Which side to take depends on where the PDF is going, and a file headed to a print shop is the case where this table matters most.
Where this stops
- Plain-text PDFs have little to gain from any of these; ImgIng's documentation says roughly 5% to 20%, and 4.8% came out here.
- Encrypted or permission-locked PDFs have to be unlocked first, and a digital signature does not survive a rewrite (both per its documentation, not tested here).
- DeviceN, JBIG2 with global segments, and 16-bit images were not tested.
To check a file of your own, list the images before and after compression and look at which ones changed colour space, then compare the same region in two different readers. If the CMYK image is still CMYK and its bytes did not change, colour was not part of the trade.

