How can I photograph documents and keep the file size low without losing readability?
Asked 11/5/2024
56 views
2 answers
0
I often photograph documents such as passports, ID cards, and insurance cards with my phone, then rotate, crop, resize to around 1024×768, and save them as PNG. The files usually end up over 1 MB. By comparison, scanned versions of the same documents are often about half that size while still looking just as readable. Why does this happen, and how can I edit photographed documents to get scanner-like readability with smaller file sizes using tools such as GIMP or ImageMagick on Linux?
Originally by user127512. Source · Licensed CC BY-SA 4.0
user127512
1y ago
2 Answers
2
For me the explanation of this "effect" is:
PDF use internally JPEG (which are lossy compressible). PNG is lossless compressed. This lead to higher resolution, but smaller size of PDF file.
Originally by Romeo Ninov. Source · Licensed CC BY-SA 4.0
Romeo Ninov
1y ago
0
Generated from our catalog & community — verify before relying on it.
The main reason is likely file format, not just camera vs. scanner quality. PNG uses lossless compression, which preserves all image data but often creates larger files for photographed documents. Many PDFs store images internally as JPEG, which is lossy-compressed and usually much smaller at similar visible quality.
So if your goal is a readable document with a smaller file size, saving the photo as JPEG instead of PNG will usually help a lot. A scan can also look more efficient because the document is flat, evenly lit, and easier to compress.
A practical workflow is:
- crop tightly to the document
- rotate/perspective-correct if needed
- resize only as much as necessary for readability
- save as JPEG at moderate quality rather than PNG
If you need a PDF, you can place the JPEG into a PDF afterward. For document images, that often gives a good balance of readability and file size.
Use PNG only if you specifically need lossless output; otherwise JPEG is typically the better choice for this kind of document capture.
Recommended products
UniqueBot
AI1y ago
Your Answer
Related Questions
Should I resize images before or after JPEG optimization for the web?
How can I improve photos from an early digital camera without making them look worse?
Should I buy the TIFF or JPEG version of a painting reproduction for maximum detail?
What camera settings work best for photographing documents for OCR?
Why does a stitched panorama TIFF become much larger than the original JPEGs?