DEV Community

Cover image for Compression Does Not Clean Metadata: Why Smaller Is Not Cleaner
Pocket PDF
Pocket PDF

Posted on Edited on Originally published at pocketpdf-notes.pages.dev AI-assisted

Compression Does Not Clean Metadata: Why Smaller Is Not Cleaner

Our photo test cut a file from 16,917 KB to 471 KB. It measured bytes, not metadata.

Compression changes how image data is stored. Metadata is a separate part of the file. Treating a smaller file as a cleaner file is an assumption, not a check.

What we measured

3200×2400 photo-like sample Measured size
Source PNG 16,917 KB
JPEG, quality 55 471 KB

That is a real byte reduction. It is not a metadata result. The test did not inspect which descriptive fields, if any, survived the export.

Why the distinction matters

EXIF can carry camera details, timestamps and GPS coordinates. IPTC and XMP can carry titles, credits and rights information. ICC profiles describe colour handling. None of these are guaranteed to disappear because the pixel data was re-encoded.

A JPEG export can keep some of that information. A PDF export can compress page content and still keep document properties.

Who should use what

  • When size matters: compress or resize, then inspect the visual result at the destination size.
  • When metadata matters: remove or inspect metadata explicitly with a dedicated tool.
  • When both matter: do two checks. First reduce the bytes; then inspect what descriptive data remains.

Limits

This describes what our size tests did and did not measure. It does not claim that any specific export removed or preserved a specific field. Inspect the actual file when that matters.

Disclosure: Some AI assistance was used in preparing this article.

Originally published at https://pocketpdf-notes.pages.dev/compression-does-not-clean-metadata/

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.