Resize photo to 213x213 px (<30KB) and signature to 400x200 px (<60KB) at 300 DPI for online PAN card applications.
UTI and NSDL online portals require candidate photos to be exactly 213 × 213 pixels, 300 DPI, JPEG format, and file size strictly under 30 KB.
Signature images must be exactly 400 × 200 pixels (or 440 × 220 pixels, 2:1 aspect ratio), 300 DPI, JPEG format, and strictly under 60 KB.
We use an iterative binary compression algorithm in HTML5 Canvas that calculates the highest possible JPEG quality level while ensuring the file size stays safely within the portal limit.