Image Resizer & Compressor — Passport, Documents, ID Cards & More
Resize and compress any image for passport & visa photos (NADRA, MRP, Saudi, UAE, Kuwait, Qatar), document scans (A4, Letter, Legal), ID cards, signatures, certificates, and general photo compression — all with exact pixel control, DPI embedding, and zero server uploads.
NADRA (CNIC/NICOP): 413×531 px · JPEG · max 350 KB · 300 DPI · white background.
DGIP MRP Passport (onlinemrp.dgip.gov.pk): 350×467 px · JPEG · under 3 MB · 300–600 DPI · white background.
Saudi Arabia eVisa: 200×200 px · JPEG · 5–100 KB · white background.
UAE ICP / Abu Dhabi: 1016×1300 px · JPEG · under 1 MB · 300 DPI.
UAE GDRFA / Dubai: 300×369 px · JPEG · 200–600 KB.
Select the portal preset below to auto-configure all settings in one click.
How to Resize & Compress Any Image — Passports, Documents, ID Cards & More
Pakistan's NADRA portal (CNIC, NICOP, FRC), the DGIP MRP Passport portal (onlinemrp.dgip.gov.pk), and GCC country visa systems (Saudi Arabia, UAE, Kuwait, Qatar) all enforce strict upload thresholds—most commonly maximum 100 KB or between 20 KB and 100 KB. When photos shot on modern smartphone cameras (often 4 MB to 15 MB) exceed these limits, portals reject the submission entirely.
1. Adaptive Binary Search Compression Engine
Traditional image converters force you to guess a quality percentage (like 80% or 70%), resulting in repeated trial-and-error uploads. Sys-Metrics implements an automated binary search algorithm directly within the HTML5 Canvas toBlob() pipeline:
- Initial Quality Estimation: Evaluates image entropy and estimates target JPEG quantization factor $q$.
- Iterative Bounding: Runs up to 7 fast binary search iterations between $q = 0.05$ and $q = 0.98$ to find the highest-quality image that fits strictly under the $100\text{ KB}$ ceiling (targeting $95\text{ KB}$ to $99.8\text{ KB}$).
- Proportional Resolution Downsampling: If an ultra-high resolution photo (e.g., 4K or 8K) exceeds 100 KB even at minimum quality, the engine dynamically downsamples the canvas dimensions by $10\%$ decrements using bicubic interpolation until the file conforms.
2. 100% Client-Side Architecture for Privacy
Most free online image compressors upload your files to unknown third-party cloud servers. For passport photos, driver's licenses, national ID cards, and official signatures, remote uploads present severe privacy and data security risks. Sys-Metrics processes 100% of the image locally in your browser RAM. Your files are never sent across the internet, logged on a server, or stored in a cache.
3. Portal Specifications & Photo Requirements Quick Reference
| Portal / Country | Format | Pixels (W×H) | DPI | Max File Size | Background |
|---|---|---|---|---|---|
| 🇵🇰 NADRA CNIC / NICOP | JPEG | 413 × 531 | 300 | 350 KB | Plain White |
| 🛂 Pakistan MRP Passport onlinemrp.dgip.gov.pk |
JPEG | 350 × 467 | 300–600 | 3 MB | Plain White |
| 🇸🇦 Saudi Arabia eVisa | JPEG | 200 × 200 | 300 | 5–100 KB | Plain White |
| 🇦🇪 UAE ICP Abu Dhabi / Federal |
JPEG | 1016 × 1300 | 300 | 1 MB | Plain White |
| 🇦🇪 UAE GDRFA Dubai / Tourist Visa |
JPEG | 300 × 369 | 300 | 200–600 KB | Plain White |
| 🇰🇼 Kuwait Visa | JPEG | 413 × 531 | 300 | 100 KB | Plain White |
| 🇶🇦 Qatar Visa | JPEG | 413 × 531 | 300 | 200 KB | Plain White |
| 🇺🇸 US Visa DS-160 | JPEG | 600 × 600 min | 300 | 240 KB | Plain White |
| 🇮🇳 UPSC / SSC Exams | JPG | 350 × 350 | 200 | 100 KB (photo) / 20 KB (sign) | Plain White |
| 🇪🇺 Schengen Visa | JPEG | 413 × 531 | 300 | 300 KB | Plain White |
| 📄 Document Scans | |||||
| A4 Scan (300 DPI) | 2480 × 3508 px | 300 DPI | Under 5 MB | Email, archive, print | |
| A4 Scan (150 DPI) | 1240 × 1754 px | 150 DPI | Under 1 MB | Email (compact) | |
| US Letter (300 DPI) | 2550 × 3300 px | 300 DPI | Under 5 MB | US forms, legal docs | |
| US Legal (300 DPI) | 2550 × 4200 px | 300 DPI | Under 5 MB | US legal filings | |
| Certificate / Degree | 3508 × 2480 px | 300 DPI | Under 3 MB | Educational certificates | |
| Signature (NADRA) | 300 × 150 px | 300 DPI | Under 50 KB | NADRA CNIC/NICOP form | |
| 🪪 ID Cards | |||||
| CR80 ID Card | 1012 × 638 px | 300 DPI | Under 500 KB | Standard credit-card ID | |
| Emirates ID Card | 1013 × 638 px | 300 DPI | Under 500 KB | UAE Emirates ID copy | |
4. Per-Portal Photo Requirements — Detailed Checklists
- Format: JPEG / JPG only
- Dimensions: 413 × 531 pixels
- Size: 35 mm × 45 mm (print)
- DPI: 300 DPI minimum
- File size: Max 350 KB
- Background: Plain white
- Face coverage: 70–80% of frame
- Expression: Neutral, mouth closed
- Glasses: Not permitted
- Recency: Within last 6 months
- Format: JPEG / JPG
- Dimensions: 350 × 467 pixels
- DPI: 300–600 DPI
- File size: Under 3 MB (aim for <100 KB)
- Background: Plain white
- Face coverage: 70–80% of frame
- Glasses: Not permitted
- Head covering: Religious only, face fully visible
- Recency: Within last 6 months
- Format: JPEG / JPG
- Dimensions: 200 × 200 pixels (square)
- DPI: 300 DPI
- File size: 5 KB – 100 KB (strict)
- Background: Plain white
- Face coverage: 70–80% of frame
- Expression: Neutral, eyes open
- Filters/AI retouching: Not permitted
- Format: JPEG / JPG
- Dimensions: 1016 × 1300 pixels
- DPI: 300 DPI
- File size: Under 1 MB
- Background: Plain white
- Face coverage: 70–80% of frame
- Expression: Neutral, direct gaze
- Format: JPEG / JPG
- Dimensions: 300 × 369 pixels
- DPI: 300 DPI
- File size: 200 KB – 600 KB
- Background: Plain white
- Expression: Neutral, eyes open
- Format: JPEG / JPG
- Dimensions: 413 × 531 pixels (standard biometric)
- DPI: 300 DPI
- File size: Kuwait: max 100 KB | Qatar: max 200 KB
- Background: Plain white
- Expression: Neutral, direct gaze
- Glasses: Not permitted
5. Frequently Asked Questions
What photo size does NADRA require for CNIC and NICOP?
NADRA requires a JPEG photo of 413 × 531 pixels (35 mm × 45 mm at 300 DPI), plain white background, file size under 350 KB, face covering 70–80% of the frame, neutral expression, no glasses, and taken within the last 6 months. The NADRA CNIC/NICOP preset on this tool configures all these settings automatically.
What are the photo requirements for onlinemrp.dgip.gov.pk (Pakistan MRP Passport)?
The DGIP online MRP portal requires a JPEG photo of 350 × 467 pixels, 300–600 DPI, plain white background, under 3 MB file size. Select the "Pakistan MRP Passport" preset — the tool auto-sets 350×467 px, 300 DPI, and white background.
Saudi Arabia eVisa photo: 200x200 pixels under 100 KB — how to make it?
Click the Saudi Arabia eVisa preset on this tool. It auto-sets 200×200 pixels, 80 KB target, 300 DPI, and white background. Upload your photo, verify the preview, and download — ready to upload to the Saudi eVisa portal.
Why is there a white border/bar on my resized photo?
White bars appear in "Fit" mode when your photo's aspect ratio doesn't match the target dimensions. Switch the Fill dropdown to "Cover (Crop, No Bars)" — this is the default for all portal presets. Cover mode fills the full frame by symmetrically cropping the edges.
Is it safe to use this tool for CNIC, NICOP, and passport photos?
Yes — completely safe. This tool processes all images 100% inside your browser using the HTML5 Canvas API. Your photos are never uploaded to any server, never transmitted over the internet, and never stored or logged anywhere. It works even offline after the page loads.
What does DPI mean and why do NADRA / DGIP require 300 DPI?
DPI (dots per inch) is resolution metadata embedded in the JPEG file header. At 300 DPI, a 413×531 pixel image prints at exactly 35 mm × 45 mm — the standard biometric passport photo size. Government biometric systems and passport printing machines read this DPI value. This tool embeds the exact DPI value you select directly into the JPEG JFIF header — not just a visual tag.
What pixel size for A4 at 300 DPI?
An A4 page scanned at 300 DPI is 2480 × 3508 pixels. Use the A4 Scan (300 DPI) preset in the Documents & Scans tab. For emailing, choose 150 DPI (1240 × 1754 px) to stay under 1 MB.
How do I resize a signature for NADRA?
NADRA requires a signature image of exactly 300 × 150 px. Select Signature — NADRA in the ID & Cards tab. Use Fit mode so no part of the signature is cropped.
Can I compress an Emirates ID card photo?
Yes. Use the Emirates ID Card preset (1013 × 638 px, 300 DPI). Upload a scan of your Emirates ID and the tool will resize and compress it while embedding the correct DPI metadata.
What about certificate and degree scan compression?
Use the Certificate / Degree preset (3508 × 2480 px landscape, 300 DPI). Select Fit mode to preserve the full page. Set target size to 1–3 MB for university portals.