Image privacy research
Why Metadata Removal May Barely Change Image File Size
Our synthetic corpus shows that metadata share depends on the size of the metadata block relative to the rest of the file. In the 166-byte JPEG fixture, 133 metadata bytes account for 80.1 percent of the file. In the 7051-byte PNG fixture, 117 metadata bytes account for 1.7 percent. Those measured examples demonstrate the denominator effect; they do not establish a typical share or size reduction for real camera photos.
What this guide helps you decide
If metadata is a large share of one small image, why can the same amount of metadata become a tiny share when the pixel payload is larger?
This research explains the relationship between metadata share and pixel payload using this repository's own corpus. It does not promise a size outcome for any specific photo or tool.
Try it on the anchor product: BeanNest Tools /image/.
Metadata is roughly fixed, pixels are not
An EXIF block with camera fields and a GPS directory occupies a bounded number of bytes regardless of image dimensions. The compressed pixel payload grows with the number of pixels and with scene complexity. The share of the file that metadata occupies therefore falls as the image grows.
The measured extremes in our corpus
The smallest file in our corpus is a 33-byte JPEG with no metadata, and the largest metadata share is 80.1 percent on a 166-byte JPEG that carries EXIF and a comment. The PNG comparison shows the same effect from the other direction: a 7051-byte PNG carries 117 metadata bytes, just 1.7 percent, because its pixel payload is comparatively large.
What follows as the pixel payload grows
For a fixed metadata byte count, increasing the rest of the file lowers metadata's percentage share. That mathematical relationship explains why the same metadata block can dominate one small fixture and be a minor fraction of a larger file. The exact share for any real file must be measured from that file rather than inferred from this corpus.
When size does change
Size will change if the operation also re-encodes pixels, changes quality settings, or rewrites the container. That is a different operation from metadata removal. A tool that reports a large size reduction after a metadata strip is very likely doing more than stripping metadata, which is worth knowing before trusting the result.
The honest way to describe the operation
The accurate description is that metadata removal changes what information the file carries, and may or may not change its size. Our corpus supports the privacy claim strongly and the size claim weakly, and the guides state exactly that split rather than promising both.
Why we keep the tiny fixtures
Small fixtures make the metadata share visible. Pairing a tiny high-share case with a larger low-share fixture makes the denominator effect easy to inspect without claiming either file is typical. The purpose of the corpus is to expose the mechanism and provide reproducible byte counts.
The arithmetic of the two regimes
On the 166-byte JPEG fixture, the analyzer counts 133 metadata bytes, which is 80.1 percent of the file. The general arithmetic is metadata bytes divided by total file bytes: if the numerator stays fixed while the non-metadata payload grows, the percentage falls. This corpus measures the two committed fixture shares; it does not assign a byte count or percentage to a hypothetical camera photo.
Why the fixture is not a trick
The 166-byte JPEG is deliberately tiny and is not presented as a typical image. Its purpose is to make the high-share case visible. The larger PNG fixture shows a lower measured share at 1.7 percent. Together they demonstrate how the ratio moves while remaining explicit that neither fixture establishes a population-wide norm.
What else can change file size
Re-encoding pixels at a different quality, changing chroma subsampling, converting between colour spaces, or rewriting the container with different entropy coding all change size substantially and have nothing to do with metadata. A tool reporting a large reduction after a strip may be performing one of those operations as well, which is worth knowing before attributing the saving to privacy cleanup.
The claim that matters for privacy
Size is the wrong metric for a metadata strip. The metric that matters is whether the file still contains the fields it contained before, which a structural check answers directly. Our analyzer reports the metadata segment count and the recovered keywords, and those are the values the guides use to support the privacy claim. The size discussion exists to prevent a false expectation, not to support the operation's value.
Why the expectation exists at all
Removing bytes from a file reduces its size, but the visible percentage change depends on how large those bytes were relative to the whole. The corpus illustrates a high-share case and a low-share case. It supports that ratio rule directly without claiming which regime is typical for photographs outside the corpus.
How to predict the outcome for a given file
Compare the metadata byte total with the total file size. A larger metadata share means removing those bytes can produce a larger percentage change; a smaller share means a smaller percentage change. The analyzer can measure those fields for supported JPEG and PNG files, so a reader can inspect their own file instead of borrowing a percentage from the synthetic corpus.
Why a large reported reduction deserves scrutiny
If a tool reports a size drop much larger than the metadata bytes measured in the input, that is a reason to check whether the operation also re-encoded pixels, altered quality, or rewrote other container data. The comparison should be made against the specific input file; this corpus does not define what percentage is normal for photographs.
What the privacy claim does not depend on
The privacy benefit of a metadata strip is independent of the size outcome. A file that still contains its EXIF block still carries its camera fields and location, regardless of how many bytes were removed elsewhere. The structural check, not the size check, is what establishes that the removal succeeded, and the guide directs a reader to that check rather than to the file size.
Why both corpus extremes are published
A single fixture could make its measured share look more general than it is. Publishing both a high-share and a low-share case makes the relationship between metadata bytes and total bytes visible. The four-file corpus is designed to demonstrate that range within controlled fixtures, not to stand in for a survey of real-world images.
Why metadata is roughly fixed while pixels scale
A metadata block contains a bounded set of fields: camera identifiers, exposure settings, a timestamp, possibly a thumbnail, and a location directory. Its size does not grow when the image resolution grows. The pixel payload, by contrast, scales with the number of pixels and with scene complexity. That single asymmetry is the whole explanation for why the metadata share falls as an image grows.
How the corpus makes the asymmetry visible
The JPEG pair shows the high-share regime because its pixel payload is deliberately minimal, so a fixed metadata block dominates. The PNG pair shows the low-share regime because its payload is several kilobytes, so the same order of metadata becomes small. Neither file is unrealistic in structure; they differ only in how much pixel data accompanies the metadata, which is exactly the variable the guide is about.
What a user should actually expect
Do not infer the size outcome from the operation name alone. Measure the metadata share of the specific input, then verify the output structure after removal. A privacy claim and a storage claim are separate: the first depends on which metadata remains, while the second depends on how many bytes changed and whether any other processing occurred.
Why the guide refuses to promise a size outcome
A size outcome depends on the specific file, the specific metadata, and whether the tool re-encoded anything else. None of those is known in advance, so any percentage would be an estimate presented as a measurement. The corpus supports a structural claim and a mechanism, and the guide publishes exactly that and nothing more.
First-party evidence and provenance
How we checked this
We wrote four small images with this repository's own generator, then parsed each file's container segments and EXIF tag directory with this repository's own analyzer. Both are dependency-free and deterministic, so the same commands reproduce the same byte counts. For this guide we related each image's metadata byte count to its pixel payload, which is what distinguishes the size effect of metadata removal from its privacy effect.
- Method
- We wrote four small images with this repository's own generator, then parsed each file's container segments and EXIF tag directory with this repository's own analyzer. Both are dependency-free and deterministic, so the same commands reproduce the same byte counts.
- Environment
- Node.js on a desktop workstation. The images are generated from code in this repository; no camera photo, third-party file, or network resource was used.
- Captured
- Reviewed by
- BeanNest Studio
Repository evidence artifacts:
tools/research-evidence/image/analysis-2026-09-20.jsontools/research-evidence/image/README.md