Why older recruitment portals reject Progressive JPEGs and require standard Baseline DCT encoding

Understanding the binary difference between SOF0 (Baseline) and SOF2 (Progressive) JPEG headers in government portal validators and PDF generators.

Not all .jpg files are encoded the same way under the hood. Even when two images are both genuine JPEGs, both use the 24-bit sRGB colour space, and both measure exactly 200 × 230 pixels at 35 KB, a government recruitment portal may accept one instantly and reject the other with "Invalid JPG File / Unable to read image dimensions" or "Image file is corrupted." When you inspect the rejected file on your computer, it opens without a hitch in every photo viewer.

The hidden difference is the JPEG compression scan mode: Baseline (Standard) DCT versus Progressive DCT. Both modes are official parts of the JPEG specification, and modern social networks, web performance tools, and image editors (like Photoshop, GIMP, and online "tiny image" websites) often default to Progressive JPEG because it makes large photos appear to load faster on slow mobile connections by rendering a blurry full-frame preview that gradually sharpens in waves.

Unfortunately, the server-side validation scripts and PDF admit-card engines used across older NIC portals, banking recruitment engines, and university admission systems were written around simple single-pass Baseline JPEG parsers. When those parsers scan a file for the Baseline Start-of-Frame marker (FF C0 / SOF0) and encounter a Progressive Start-of-Frame marker (FF C2 / SOF2) instead, they abort and report a corrupt image. Here is how to understand the difference and guarantee every upload is encoded as a pure Baseline JPEG.

Quick answer & key takeaways

A Baseline JPEG (SOF0 header) stores pixels sequentially from top to bottom in a single pass, whereas a Progressive JPEG (SOF2 header) stores the image in multiple blurry-to-sharp frequency scans. Many legacy NIC, IBPS, SSC, and state recruitment portals—as well as their server-side PDF admit-card generators—only support Baseline DCT decoding and reject Progressive JPEGs as "Invalid or Corrupted JPG Files."

  • A Baseline JPEG (SOF0, hex marker FF C0) encodes image blocks in a single top-to-bottom scan, which every legacy government portal and PDF generator can read.
  • A Progressive JPEG (SOF2, hex marker FF C2) splits image data across up to 10 separate frequency scans, causing older server parsers and PDF libraries to reject the file as unreadable.
  • Popular "web performance" image compressors, social media downloads, and photo editors with the "Progressive" checkbox ticked routinely output Progressive JPEGs without warning you.
  • Below 30 KB (such as exam signatures and small passport photos), Progressive JPEGs actually have *larger* file sizes or worse visual quality than Baseline JPEGs because multiple scan headers add byte overhead.
  • Browser HTML5 Canvas .toBlob("image/jpeg") encoders—used by Relwick’s Photo & Signature tool and Exact Image Compressor—always produce strict single-pass Baseline (SOF0) JPEGs.

Baseline DCT (`SOF0`) vs. Progressive DCT (`SOF2`): what changes inside the file

Inside every JPEG file, compressed image data is preceded by a series of two-byte hexadecimal markers that tell the decoder how the pixels are arranged. Every JPEG starts with FF D8 (Start of Image) and ends with FF D9 (End of Image). In the middle sits the Start of Frame (SOF) marker, which records the image’s pixel height, pixel width, colour channels, and—crucially—the encoding method.

In a Baseline Sequential JPEG, the frame marker is `FF C0` (`SOF0`), followed by a single FF DA (Start of Scan) marker. The decoder simply reads 8×8 pixel blocks row by row from the top edge of your forehead down to your shoulders in one straight pass. In a Progressive JPEG, the frame marker is `FF C2` (`SOF2`), followed by *multiple* FF DA scan blocks. The first scan contains only coarse low-frequency colour blocks for the whole photo, and subsequent scans add sharper high-frequency details.

Technical comparison between Baseline and Progressive JPEG files
PropertyBaseline Standard JPEG (`SOF0`)Progressive JPEG (`SOF2`)
Hex Frame MarkerFF C0 (Start of Frame 0 — Baseline DCT)FF C2 (Start of Frame 2 — Progressive DCT)
Number of Data ScansExactly 1 (FF DA appears once)Typically 3 to 10 (FF DA appears before each pass)
Decoding Memory NeededTiny (only one 8-pixel-tall row buffer in RAM)High (must buffer the entire image frame across multiple passes)
Efficiency on Tiny Files (< 20 KB)Higher visual quality (only 1 scan header)Lower quality (extra FF DA scan headers waste 200–600 bytes)
Legacy Portal & PDF CompatibilityUniversal (100% supported)Frequently rejected by older parsers and PDF libraries

Why recruitment servers and PDF admit-card engines block Progressive JPEGs

There are three distinct technical reasons why a government recruitment portal rejects a Progressive JPEG while accepting a Baseline JPEG of the exact same photo:

  1. Hard-coded `FF C0` dimension parsers: Many lightweight portal validation scripts read an uploaded JPEG’s width and height by scanning the raw byte stream for the byte sequence FF C0 and reading the four bytes that follow it. When you upload a Progressive JPEG that uses FF C2 instead of FF C0, the parser never finds FF C0, concludes that the width and height are 0 × 0, and throws "Unable to read image dimensions / Invalid JPG."
  2. Server RAM protection during peak exam traffic: Decoding a Progressive JPEG requires the server to allocate a full-frame coefficient buffer in memory and pass over the image up to ten times. When 50,000 candidates are uploading files simultaneously on the last day of an SSC or Railway notification, disabling multi-pass Progressive decoding protects the server from memory exhaustion attacks.
  3. Legacy PDF generation libraries: Many exam boards generate Admit Cards and Application Confirmation PDFs using older versions of open-source PDF libraries (such as classic FPDF or legacy Java/COM PDF writers) that embed Baseline JPEG byte streams directly into the PDF’s /DCTDecode filter, but explicitly refuse Progressive JPEGs with the error "Progressive JPEGs are not supported in PDF generation."

Common apps and workflows that silently export Progressive JPEGs

Candidates rarely choose Progressive encoding deliberately; it gets turned on by sticky checkboxes in desktop editors or automatic web optimisers. If your valid-looking JPEG was rejected by an exam portal, check whether it passed through any of these common tools:

  • GIMP (GNU Image Manipulation Program): In GIMP’s *Export Image as JPEG* dialog, the "Progressive" checkbox under *Advanced Options* is ticked ON by default in almost every installation. Unless you manually untick it, every JPEG exported from GIMP is a Progressive (SOF2) file.
  • Adobe Photoshop / Lightroom / Canva web optimisers: If someone ticked *"Progressive (3 Scans)"* in Photoshop’s *Save As* or *Save for Web* dialog for a previous project, Photoshop remembers that sticky setting for every subsequent export.
  • Cloud-based "Compress JPEG for Web" tools: Automated cloud compressors that run mozjpeg or jpegtran -progressive on their servers convert your Baseline photo into a Progressive JPEG unless they are specifically engineered for government application forms.
  • Social media re-downloads: Downloading your own profile photo or post from Facebook, Instagram, or LinkedIn often gives you a Progressive JPEG or a WebP file renamed to .jpg.

Why Baseline JPEG is mathematically superior for 10 KB–20 KB signatures

Even setting compatibility aside, Progressive encoding is counterproductive for small exam files like signatures (10–20 KB) and thumb impressions (20–30 KB). Progressive encoding only saves bytes on large photographs (typically above 30 KB or 40 KB) where grouping similar frequency coefficients across thousands of blocks outweighs the overhead of writing multiple scan headers.

On a 140 × 60 pixel signature image targeting 12 KB (12,000 bytes), each additional progressive scan adds its own FF DA header and Huffman table overhead. That wasted header space forces the compressor to use a lower quality factor on the actual ink strokes, creating "mosquito noise" and grey speckles around your signature. A single-pass Baseline JPEG puts every byte into clean ink edges.

How to re-encode any Progressive JPEG into a verified Baseline JPEG locally

The fastest way to convert a Progressive JPEG into a universally accepted Baseline (SOF0) JPEG is to pass it through the browser-local Photo & signature tool or Exact image compressor. Because standard browser HTML5 Canvas .toBlob("image/jpeg", quality) implementations write pure single-scan Baseline DCT (FF C0) streams with standard JFIF headers, simply loading your image and downloading the output strips the progressive scans completely.

Choosing the right local tool to convert Progressive to Baseline JPEG
Your current file situationTool to openWhat it outputs
Photo or signature already has the right crop, just needs Baseline JPEG at 10, 20, 50, or 100 KBExact image compressorSingle-pass Baseline (SOF0) JPEG binary-searched to your exact decimal byte ceiling.
Photo or signature needs both exact pixel/cm dimensions (e.g. 200×230 px) and a KB rangePhoto & signatureCropped, white-background-flattened, 24-bit sRGB Baseline (SOF0) JPEG within your min/max KB range.
Multiple files (photo, sign, thumb, declaration) need re-encoding at onceBatch image processorUp to 8 clean Baseline JPEGs processed locally in one session.

How to convert a rejected Progressive JPEG into a portal-ready Baseline JPEG

  1. Test your existing file in the Application File Checker

    Open Application file checker and drop your rejected JPEG in to check its true format headers, exact pixel dimensions, and decimal byte count.

  2. Open the Photo & Signature tool or Exact Image Compressor

    If you need specific pixel dimensions (like 200 × 230 px or 140 × 60 px), open Photo & signature. If your dimensions are already exact and you only need a clean re-encode under a byte cap, open Exact image compressor.

  3. Load your image and set the notification’s KB target

    Select your image (preferring your untouched master original if you have it, or the rejected Progressive JPEG). Enter the target KB limit from the official notification.

  4. Download the freshly encoded Baseline JPEG

    Click Download. The browser’s local Canvas encoder writes a brand-new, single-pass Baseline DCT (SOF0) JPEG in 24-bit sRGB with all progressive scan blocks and EXIF clutter removed.

  5. Save with a simple lowercase filename and upload

    Save the output as photo.jpg or sign.jpg in your local Downloads folder and upload it to the recruitment portal. Both the upload dimension validator and the Admit Card PDF generator will read it cleanly.

Common mistakes to avoid

What goes wrong: Using generic "compress JPEG for website speed" cloud tools to shrink exam photos and signatures.

Better approach: Use exam-aware local tools (Photo & signature or Exact image compressor) that always output Baseline (SOF0) JPEGs targeted to decimal byte limits.

What goes wrong: Leaving the "Progressive" checkbox ticked in GIMP’s JPEG export settings.

Better approach: Always untick "Progressive", "Save EXIF data", and "Save thumbnail" in GIMP when exporting files for government portals.

What goes wrong: Choosing "Progressive (3, 4, or 5 Scans)" in Adobe Photoshop believing more scans mean higher quality.

Better approach: Select "Baseline (Standard)" in Photoshop’s JPEG Format Options; Progressive only changes loading order, not visual sharpness.

What goes wrong: Repeatedly re-compressing an already low-quality 15 KB Progressive JPEG.

Better approach: Keep a high-resolution untouched original in your master folder and generate your Baseline JPEG directly from that clean source.

Frequently asked questions

Does a Progressive JPEG have better visual quality than a Baseline JPEG?

No. At the same quality setting, the final decoded pixels of a Baseline JPEG and a Progressive JPEG are mathematically identical. Progressive encoding only changes the *order* in which the data is stored so that a slow web browser can draw a blurry preview first. For small exam photos and signatures under 50 KB, Baseline actually looks cleaner because it does not waste bytes on multiple scan headers.

Why does the portal error say "Unable to read image dimensions" when my photo is 200 × 230 pixels?

Older validation scripts look for the image’s width and height by searching the binary file specifically for the Baseline JPEG marker (FF C0). Because a Progressive JPEG stores its dimensions after the FF C2 marker instead, a script that only knows about FF C0 fails to find the dimensions and reports that the image cannot be read.

Can a Progressive JPEG pass the initial upload screen and still fail on the Admit Card later?

Yes, and this happens occasionally on state and university portals. If the upload screen only checks the .jpg file extension and byte size, it accepts the file. Later, when the server uses a legacy PDF library (such as older FPDF builds) to generate your Admit Card PDF, the PDF engine throws an error on the Progressive JPEG or leaves the photo box blank.

Do smartphones take Progressive JPEGs by default?

Most standard Android camera apps shoot Baseline JPEGs (and iPhones shoot HEIC or Baseline JPEG). However, if you edit the photo in a third-party mobile app, send it through social media apps, or run it through an online web optimiser, those intermediate apps frequently re-save the output as a Progressive JPEG.

How does Relwick guarantee that exported JPEGs are always Baseline?

Relwick’s image tools render your cropped image onto an HTML5 Canvas element in local browser memory and invoke the standard browser JPEG encoder, which outputs a strict single-scan SOF0 (FF C0) Baseline DCT stream with zero progressive scans or third-party EXIF blocks.

Summary

Progressive JPEGs were invented to make large website banners appear gradually over dial-up and slow mobile connections—not for 20 KB signatures and 50 KB passport photos on government recruitment servers. Because legacy dimension checkers and Admit Card PDF engines across NIC, IBPS, and state portals frequently reject SOF2 Progressive JPEGs as corrupted files, re-encoding your images through the local Photo & Signature tool or Exact Image Compressor ensures every upload is a universally compatible SOF0 Baseline JPEG.

Related guides

Browse all guides →