Resize and Compress Photos for FPSC, Passport and Web Forms

The right order for Pakistani uploads: a sharp FPSC picture under 30 KB, a 350 x 467 passport photo that needs no squeezing, and light web images.

By · · 7 min read

Illustration for the Image Compressor guide

Pakistan edition. Written for Pakistan: FPSC's "less than 30 KB" JPEG picture, the DGIP online passport photo at 350/467 pixels and up to 3 MB, why 29 KB is the safe target, scanned documents as PDF, and web images for visitors on mobile data. US edition

Two Pakistani forms show why image work has an order. The Federal Public Service Commission wants a recent passport-size picture in JPEG that is less than 30 KB. The DGIP online passport service wants a colour picture on a white background at 350 x 467 pixels, as a JPEG of up to 3 MB. A phone photo of 3 to 4 MB fails the first by a factor of a hundred and fits the second once it is the right shape. The steps are the same either way: crop and resize first, then compress only as far as the form needs, then package. The photo resizer for the online passport and the image compressor set up for the FPSC limit do each step in your browser without uploading the photo.

Pixels first, then bytes

A 12 megapixel phone portrait (3000 x 4000) holds 12 million pixels. A 350 x 467 passport picture holds 163,450, about 73 times fewer. A JPEG limit in KB is really a budget per pixel:

PhotoPixelsBytes per pixel at 29,000 bytes
Full phone portrait, 3000 x 400012,000,0000.002
Resized to 350 x 467163,4500.18

At 0.18 bytes per pixel a face is still recognisable and clean at its displayed size; at 0.002 the encoder has nothing left to work with, so the compressor has to shrink the pixels anyway. Doing the resize yourself, with a tight head-and-shoulders crop, lets you choose what stays.

FPSC: under 30 KB, so aim for 29

FPSC's guidelines for online application submission, updated 9 September 2025, say applications are online only, and ask in step 2 for a recent passport size picture in jpg or jpeg having size less than 30 KB, uploaded with the Choose File button. They also say to avoid informal pictures. They do not set a pixel size.

The trap is the word "less". Portals count a kilobyte as either 1,000 or 1,024 bytes. A file of exactly 30,000 bytes is 30.0 KB on the 1,000-byte count, which is not less than 30. The compressor reads a limit of N KB as N x 1,000 bytes, so:

Target typedMaximum fileOn a 1,000-byte countOn a 1,024-byte countPasses "less than 30 KB"?
3030,000 bytes30.00 KB29.30 KBNot on the 1,000-byte count
2929,000 bytes29.00 KB28.32 KBYes, on both

So the routine for FPSC is:

  1. Crop the photo to head and shoulders on a plain background.
  2. Resize it to a passport-like size, for example 350 x 467, using the resizer with crop to fill on.
  3. Compress with a target of 29 KB. The result card shows the final size, quality and pixels.
  4. Download the .jpg and upload it. FPSC's step 2 accepts JPEG only, which is what the tools output.

DGIP online passport: resize, do not over-compress

The DGIP online passport page's document lists ask for a colour picture with a white background, scanned from the original, at 350/467 pixels, in JPEG, not more than 3 MB. The size problem here is the shape, not the bytes: a 350 x 467 JPEG is a small fraction of 3 MB at any sensible quality. Forcing it down to 29 KB would only make the face blockier for no benefit.

An upright 3000 x 4000 photo is almost the right shape already: crop to fill keeps a 2,998 x 4,000 region and scales it to exactly 350 x 467. A landscape 4000 x 3000 photo taken by a relative loses 876 pixels from each side, so frame the face in the middle before taking it.

Transparent PNGs are a common cause of strange results. JPEG has no transparency, so the tools fill it with white before encoding, which is also the background DGIP asks for. Without that, some converters turn the transparent area black.

Scanned documents as PDF

CNICs, degrees and domicile certificates are usually uploaded as scans. The image to PDF converter places each scan on an A4 page (595.28 x 841.89 points) inside the margins. An A4 scan at 150 dpi, 1240 x 1754 pixels, comes out at about 161 pixels per inch on the page with 20 point margins: readable on screen and in an ordinary print. At 300 dpi, 2480 x 3508, it is about 322, but with four times the pixels and a much larger file. If the portal has a size cap, scan at 150 to 200 dpi.

The same order for a website

A Pakistani business or news site pays for heavy images in visitors who give up on mobile data. The same order applies:

  1. Resize to the display size. A 4000 x 3000 photo shown in a 1600 pixel wide column becomes 1600 x 1200, which removes 84% of the pixels.
  2. Choose the format. JPEG or WebP for photos; PNG or lossless WebP for screenshots, Urdu text graphics and logos, where JPEG blurs the edges of letters. The image converter handles both.
  3. Compress at 75% to 85% and check faces at full zoom.
  4. Prefer real text to pictures of text. A notice posted as an image of a printed page is heavy and cannot be read by screen readers or searched.

Mistakes that cause rejected uploads

  • Typing 30 for a "less than 30 KB" rule. Type 29.
  • Compressing the full-size photo. Crop and resize first, so the bytes go to the face.
  • Squeezing the passport photo. DGIP allows up to 3 MB; get the 350 x 467 shape right and stop.
  • An informal picture. FPSC's guidelines say to avoid them; use a recent, formal photo.
  • Compressing a compressed copy. Keep the original and start from it each time.

For format choices in more depth, see the image formats guide, and for the location and phone details that re-encoding removes, the EXIF metadata guide. The US edition covers Base64 data URIs and other developer details.

Frequently asked questions

What picture size does FPSC accept?

FPSC's online application guidelines ask for a recent passport size picture in JPEG with a size less than 30 KB. They do not set pixel dimensions. Resize to a passport-like size such as 350 x 467 and compress with a 29 KB target so the file is under 30 KB however the portal counts a kilobyte.

Why is my FPSC picture rejected when it shows 30 KB?

A file of 30,000 bytes is 30.0 KB on a 1,000-byte count, which is not less than 30 KB. On a 1,024-byte count the same file is 29.3 KB, so it can look fine on your phone and still fail. Keep the file at 29,000 bytes or less.

What size is the photo for the Pakistan online passport?

The document lists on DGIP's online passport page ask for a colour picture with a white background at 350/467 pixels, in JPEG, no larger than 3 MB. Resize with crop to fill to keep the face in proportion; there is no need to compress it hard.

How do I keep my photo sharp under 30 KB?

Resize before compressing. At 350 x 467 the photo has 163,450 pixels, so 29 KB is about 0.18 bytes per pixel, enough for a clear face. A full 12 megapixel photo at 29 KB gets about 0.002 bytes per pixel and turns blocky or has to be shrunk anyway.

Sources and further reading

Open the Image Compressor

More Image Tools

Every tool in the Image Tools section, free and in your browser.