How Big Is a Scan? Pixels, DPI and Page Size Explained
changes the image DPI from 72 to 300; the file properties now look more professional, but the text edges remain unclear. DPI is information about physical size
Scanned pages look sharp on screen, but their size depends on two numbers: how many pixels they contain and what DPI they claim. If you translate, OCR, or archive scanned documents, you need to know which number matters for which task. This guide explains the difference, shows how to compare two samples, and gives you a checklist for preparing scans.
The examples come from synthetic samples run in an isolated environment. They do not guarantee results for every real file. Keep your original copies, and check the methods against your own files and acceptance criteria before you process important documents.
How big is a scan in pixels versus inches? The short answer
Pixels are the real detail in a scan, while DPI only tells software how large those pixels should print, so judge input by pixel dimensions, file size, and page quality rather than the DPI label alone.
| Your situation | What to do | Why |
|---|---|---|
| Two scans are both labelled 300 DPI | Compare their pixel dimensions before assuming they match | The same DPI can give different pixel counts and print sizes |
| You want to improve text recognition | Rescan at better quality if you can | Enlarging an image cannot restore detail that was lost at scanning |
| You cannot rescan | Compare different preprocessing methods | Only a comparison shows which method helps |
| You check whether a file fits an input limit | Look at total pixels, long-side dimension, and file size | DPI metadata does not describe these limits |
| You translate a batch of scanned documents | Record pixel dimensions and source quality for each file | This helps you see which pages need manual review |
Pixels and DPI are different things
DPI is information about physical size. It tells software how big the image should be when printed. Pixels are the actual sampling points that carry the image content.
The two are related, but changing the metadata does not add detail. If you change a file's DPI from 72 to 300, the properties look more professional, yet the edges of the text stay just as unclear.
Why this matters
- Images of the same width can print at different widths, depending on their DPI settings.
- A DPI value on its own does not tell you how much detail the image holds.
- Editing DPI changes how the file is labelled, not what it contains.
Compare two samples that differ only in DPI
The code below creates two samples that differ only in DPI, so you can see the effect of the setting.
from io import BytesIO
from PIL import Image
image = Image.new("RGB", (600, 300), "white")
def encode(dpi):
stream = BytesIO()
image.save(stream, format="PNG", dpi=(dpi, dpi))
stream.seek(0)
decoded = Image.open(stream)
decoded.load()
return decoded
low, high = encode(72), encode(300)
assert low.size == high.size == (600, 300)
assert low.tobytes() == high.tobytes()
assert low.info["dpi"][0] < high.info["dpi"][0]
assert image.width * image.height == 180000
assert 600 / 300 == 2.0
The last line shows that, at 300 DPI, 600 pixels correspond to 2 inches. Saving DPI to a PNG can involve unit conversion and rounding, so do not expect the value you read back to match the value you wrote, bit for bit. Compare the magnitudes instead, and confirm that the pixel count has not changed.
Reference: Pillow Image
Check the right indicators for your input budget
Different metrics answer different questions. Use the table below to decide which one to check.
| Metric | What it can indicate | What it cannot indicate |
|---|---|---|
| Total pixels | The basic scale of decoding | Whether the characters are clear enough |
| DPI metadata | How the image converts to physical dimensions | Any new detail |
| File byte count | The upload and storage burden | The total memory needed after decoding |
| Character height in pixels | Whether glyphs have enough sampling points | Whether every page is equally readable |
Keep these limits in mind
- Input constraints for OCR typically involve total pixel count, long-side dimension, and file size.
- Do not rely on a single DPI value in the file properties.
- Compressed file size does not tell you how much memory the image needs once decoded.
Zooming and rescanning are different actions
If the original scan has already squeezed fine strokes into a single pixel, interpolation-based enlargement cannot restore the lost information. Enlarging the image only makes the blur bigger.
Follow this order:
- If you can rescan, focus on improving the acquisition quality.
- If you cannot rescan, compare different preprocessing methods.
- Test every "recognition improvement" on the same annotated samples, so the comparison is fair.
Standardise your scanned documents before translating
When you process scanned documents with OmniDoc, record the pixel dimensions and source quality of each file. This makes results easier to compare across files.
- Do not assume two files are equivalent just because both are labelled 300 DPI.
- Clear input specifications show your team which pages need manual review.
- Keep a short log for each batch: file name, pixel dimensions, file size, and any quality issues you noticed.
📊 At a glance
| Aspect | Pixels | DPI metadata |
|---|---|---|
| What it is | The actual sampling points in the image | Information about physical size |
| What it tells you | How much detail the image carries | How large the image should print |
| Changed by editing DPI? | No | Yes |
| Useful for OCR input limits? | Yes, with file size and long-side dimension | Not on its own |
🎯 Which approach fits you?
If you are checking a scan against an input limit
Check total pixels, the long-side dimension, and file size. Do not rely on the DPI value alone.
If you can go back to the paper
Rescan at better quality. Enlarging a weak scan will not recover lost detail.
If you must work with the existing scan
Compare preprocessing methods on the same annotated samples, and keep the results you can verify.
If you are translating a batch of scanned pages
Record pixel dimensions and source quality for every file, and flag the pages that need manual review.
❓ FAQ
1. Does changing a scan's DPI make the text sharper?
No. DPI is metadata about physical size. It does not add new detail, so the text edges stay as unclear as before.
2. Why can two scans labelled 300 DPI behave differently?
Their pixel dimensions can differ. Two images with the same DPI can have different pixel counts and print at different sizes, so compare pixel dimensions and file size as well.
3. Can I enlarge a low-quality scan to improve OCR?
Not reliably. Interpolation-based enlargement cannot restore information that was lost when the page was scanned. If you can, rescan at better quality.
4. Is the file size a good measure of memory use?
No. Compressed byte size does not show how much memory the image needs after decoding.
📝 Summary
Judge a scan by its pixels, not its DPI label. Check file dimensions and quality before you process a batch, and keep your originals while you test.
Try it now: upload a document and get it translated with the layout intact


