UGLYPEAR AI completes its business upgrade: High-Performance Document Compression × RAG Data Engineering PlatformLearn about the New Business →

Check Compression Quality on Scanned Documents

A stack of scanned case files arrives on your desk. Someone says the new compression setting keeps them clear and asks whether it is safe to run the archive through it. You could take the claim at face value, or you could check. This is a field guide to the second option: the dimensions worth inspecting on a scanned page, the boundaries where a check stops being meaningful, and a sampling method that still works after the tool changes. It stays at the level of public principles and observable behavior. Nothing here depends on a particular implementation, and nothing here requires one. More field notes on document handling appear on the UglyPear Data blog.

Why scanned pages are a special case

A native document carries its content as structure — text characters you can select, vectors you can redraw. A scan carries it as pixels. Once a stamped contract has been photographed into a page image, the seal is a textured patch with a fine edge, the signature is a few thin strokes, and the QR code in the footer is a grid of small blocks. None of these is a text layer. A compressor looking at the page sees color and contrast, and it has to decide which variations carry meaning.

That is the reason quality checks on scans cannot borrow the checks you would run on a native file. A text extract either works or it does not; a scan degrades gradually, starting at the edges. The border of a seal merges into a continuous smear while the red still looks red. Two signature strokes touch while the overall shape still reads as handwriting. If your check is whether it looks all right on screen, it will pass pages that fail on paper.

The volume behind this is not small. IDC put worldwide data at roughly 149–180 ZB in 2024, projected to reach 394 ZB by 2028, with unstructured data making up 80–90% of it. A large share of that unstructured material is exactly this — ordinary paper turned into images, stored because somebody may need to read it years later. Checking quality at scale is not a nicety; it is the difference between an archive that can be verified and one that merely occupies space.

The dimensions worth inspecting

A check is no better than the questions it asks. The table below is a framework you can apply to any compression tool, with the same columns for each dimension so the results stay comparable. It is not a scorecard for any product.

Dimension What to look at How to inspect it A failure sign What it tells you
Seal border Whether the outer edge stays a closed outline Enlarge to original size, then print both versions at the same scale The border merges into a solid red patch Fine edges were treated as removable detail
Signature strokes Whether the entry and exit strokes stay apart Compare the same region in original and compressed copies Strokes touch where the pen lifted Thin marks lost separation under shrinking
QR code blocks Whether the small grid still scans Scan the compressed copy with an ordinary phone The code fails to resolve Small repeated blocks were smoothed over
ID number and face regions Whether the region stays readable Read the digits at original enlargement Digits are no longer legible Protection kept legibility, not privacy — masking is a separate step
File size How far the page actually came down Record bytes before and after Size barely moves Input was already dense, or the tool took a fallback path

Note the fourth row carefully. An ID number that stays readable after compression is not a privacy outcome. Being legible and being entitled to be seen are different questions, and redaction belongs to its own process.

Why a check needs a policy, not a mood

There is a governance reason for writing the check down. IBM's 2025 data breach report found that one in five organizations had experienced a data leak involving employees using AI tools privately, and that 63% of breached organizations had no AI governance policy in place. Those figures describe a different risk from compression, but the pattern transfers: tools used without an agreed policy produce outcomes nobody can reconstruct later. A verification habit is the small, local version of a governance policy — it states what the tool is allowed to change and records what actually happened.

A check that lives in someone's memory alone is not a check. It changes with the person, the mood and the deadline. Writing down three things — what you inspected, how many pages passed, how many needed rework — turns an impression into something you can compare across runs and hand to a colleague.

Keeping the method light

The reason verification gets skipped is rarely disagreement about its value. It is time. Asana's Anatomy of Work index found that people spend 60% of their time on work about work — finding files, syncing status and so on — with 27% left for their actual job. A quality regime that adds another hour to the work-about-work column will be abandoned within a week.

So keep it small. Ten or twenty pages with stamps and signatures are enough for an initial pass. Enlarge the key areas to the size of the original, ask the table's questions, and note the pass count. Change one setting, run the same pages again, and set the two notes side by side. The point is not to inspect every page; it is to keep a sample small enough that you will actually repeat it.

The boundaries where the check stops

Some pages will fail for reasons a setting cannot fix. A scan blurred at capture, with strokes already joined at low resolution, will not sharpen through compression. Compression is not restoration, and expecting it to be leads to blaming the tool for a property of the input. If a file is already tightly compressed — an image, a video, or a package that has been through encryption — there is little left to remove, and moving a setting will not change the size much.

There is a second boundary around pages where nearly everything needs protection: stamps, annotations and handwriting packed across the sheet. Some tools recognize the important regions before shrinking and protect them; when the protected area grows too large, a sensible tool falls back to the normal compression path rather than forcing a bad result. The desktop version of SmartSlim, from UglyPear Data, takes that position: seals, signatures, faces, ID numbers and QR codes are recognized before shrinking, those regions are protected while the rest is reduced, and an oversized protected area hands the choice back to the person. How that is arranged internally is not part of the claim and does not need to be.

A useful check acknowledges this boundary instead of hiding it. When a page fails, record which boundary it hit — poor source, already-dense content, or a protection area too large — because the three call for different responses. Improving the scan, keeping the original and splitting the page are all more reasonable than chasing a smaller file.

A regression protocol, not a one-off

A single clean result says little. The risk with compressed archives is drift: a device change, a software update or a new default quietly changes the outcome, and the pages that used to read cleanly stop doing so. The way to catch that is regression sampling.

Keep the sample set. The same ten or twenty pages, with their originals, become a fixture you can re-run. After any change to the tool or the machine, run them again and compare against the stored note. If the stamp border closes more often this time, you have found drift early. If the size drops further but the pass count falls, you have found a tradeoff worth naming. Keep the record short enough that it survives a busy month.

Then make the check awkward on purpose. Test a batch with dozens of subfolders and a few large files mixed among small ones, rather than a clean set of similar pages. Put a call or an export in the foreground while the job runs. Add a new page to the batch halfway through. These are the conditions that separate a method that holds up in a real working day from one that works on a tidy demo alone. It is a general way of evaluating outcomes, borrowed from how people test background work, and it does not favor any tool.

What the method is worth on its own

Run the protocol on a batch of your own files and keep three records: what you inspected, how many pages passed, and which boundary the failures hit. That gives you a grounded answer about where the approach helps and where it does not.

The method stands on its own regardless of the tool. A tool can make region protection a routine step so the check runs on your own machine; it cannot decide what your archive needs. Whether a reduced copy affects evidentiary weight or meets your archive's rules is not a compression decision. Keep the original, treat the reduced copy as the version for daily access and transfer, and let the organization's rules settle which one counts when a file is questioned. The standard for judging a compressed scan is not a claim on a webpage. It is whether the seal border still closes, the strokes stay apart, and the same pages still pass after the next update.

Try it now

  • Explore the product: https://www.uglypear.com/en/products/
  • Read more field guides: https://www.uglypear.com/en/blog/
  • Company site: https://www.uglypear.com/en/

FAQ

Q: Why does a QR code fail before the rest of the page looks damaged?
A: A QR code is a grid of small repeated blocks. Smoothing that removes fine detail breaks the grid pattern, so the code stops resolving while surrounding text still reads normally. Test the code by scanning the compressed copy with an ordinary phone.

Q: How many pages make a useful initial sample?
A: Ten to twenty pages with stamps and signatures are usually enough for a first pass. The sample is useful only if you will repeat it, so choose a size you can realistically re-run after a device or version change.

Q: What should I record when a page fails the check?
A: Note which boundary it hit: a poor source scan, content already dense with little left to remove, or a protection area too large. Each calls for a different response, and the note makes the reason recoverable later.

Q: Does a readable ID number after compression mean it is safe to share?
A: No. Legibility and permission to be seen are separate questions. Regional protection during compression keeps a region readable; redaction for sharing belongs to its own process.