JPEG is the most fre­quent­ly used image format on the internet. Around 71.4 percent of all websites contain photos and graphics in this format. But JPEG is actually just an umbrella term for an image com­pres­sion standard. PJPEG, also known as Pro­gres­sive JPEG, is one of three popular com­pres­sion modes of this standard. Pro­gres­sive JPEGs compress photos and graphics in a par­tic­u­lar way, with the effect that they load dif­fer­ent­ly than “normal” or baseline JPEGs.

HiDrive Cloud Storage
Store and share your data on the go
  • Store, share, and edit data easily
  • Backed up and highly secure
  • Sync with all devices

The Basics: JPEG and image com­pres­sion

JPEG refers to a format developed in 1992 for com­press­ing images. It’s an umbrella term for various modes of image com­pres­sion. The acronym JPEG stands for “Joint Pho­to­graph­ic Expert Group”, referring to the group that developed the standard. JPEGs are the most fre­quent­ly used image format on the internet and are chosen for photos and complex graphics with high color depth. Based on the export settings of the par­tic­u­lar image editor being used, there are major dif­fer­ences in JPEG com­pres­sion.

The process of com­press­ing reduces files in size. This saves disk space and shortens transfer and loading times. A shorter transfer time means that an image loads faster on a website. However, in most cases reducing the file size has con­se­quences for the content, because it requires cutting down on content, in one way or another. In the case of photos and graphics, it’s important to make sure that the image quality isn’t reduced too much. This results in files that load quickly but don’t look very good.

PJPEG

One method of image com­pres­sion that falls under the JPEG standard is the pro­gres­sive JPEG or PJPEG. PJPEGs are also made using a com­pres­sion algorithm, but appear dif­fer­ent­ly when they are being loaded in the browser. PJPEGs work in all modern browsers, including Chrome, Firefox, and versions 9 and higher of Internet Explorer. Older versions of Internet Explorer have sig­nif­i­cant problems dis­play­ing pro­gres­sive JPEGs. However, since Internet Explorer 8 has a dis­tri­b­u­tion of only 0.4% worldwide, this is not relevant for most web projects. Browsers that do not support the pro­gres­sive JPEG format will load the photos like normal JPEGs. So what exactly is the dif­fer­ence between the two formats?

JPEG vs PJPEG

The biggest dif­fer­ence between JPEGs and PJPEGs is the way images are loaded. Images saved as baseline JPEGs (that is, “normal” JPEGs) are loaded line by line from top to bottom. In the case of pro­gres­sive JPEGs, however, the entire image is shown im­me­di­ate­ly and loaded pixel by pixel. So a pixelated, blurry image gradually sharpens. While baseline JPEGs are loaded from top to bottom, PJPEGs can be said to load from back to front.

This has a positive effect on user ex­pe­ri­ence since PJPEGs appear to load faster due to the lack of extra white­space on the page. The following images il­lus­trate how JPEGs and PJPEGs are loaded. In the case of baseline JPEGs, the pixels appear line by line, from top to bottom:

On the other hand, PJPEGs are loaded from back to front. The image gets clearer and clearer as it loads, and the number of pixels increases in­cre­men­tal­ly.

Pros and cons of PJPEGs

Many users prefer the entire photo to appear im­me­di­ate­ly, even if it’s blurry. But PJPEGs also have some dis­ad­van­tages.

Ad­van­tages Dis­ad­van­tages
The com­pres­sion ratio can be cus­tomized in programs like Photoshop Internet Explorer versions 8 and below have sig­nif­i­cant problems dis­play­ing PJPEGs
Small file size Trans­par­ent back­grounds, e.g. for GIFs, are not supported
Rel­a­tive­ly high image quality with a high rate of image com­pres­sion Faster loading times are barely no­tice­able in modern browsers
Positive effect on user ex­pe­ri­ence, and sub­jec­tive­ly faster loading time due to minimal white­space Negative effect on user ex­pe­ri­ence, because users can’t tell when an image has finished loading
HiDrive Cloud Storage
Store and share your data on the go
  • Store, share, and edit data easily
  • Backed up and highly secure
  • Sync with all devices

Creating PJPEGs

Most graphics editing programs au­to­mat­i­cal­ly save photos and graphics as baseline JPEGs. But it’s usually quite easy to save files as PJEGs. There are many different ways to create a pro­gres­sive JPEG. In programs like IrfanView and Adobe Photoshop, you can export files in that format. Specif­i­cal­ly, an image can be saved as a PJPEG in Photoshop as follows:

  • In the “File” menu, select “Export” and choose the option “Save for web (Legacy)”
  • On the upper right, choose JPEG as the file format, and check “Pro­gres­sive”
  • Set the image quality as needed
  • Click “Save” on the bottom left

You can also create pro­gres­sive JPEGs using the free program IrfanView. The program is an al­ter­na­tive to Photoshop, but un­for­tu­nate­ly is not available for iOS. You can save a photo as a PJPEG in IrfanView as follows:

  • In the “File” menu, click “Save” or simply click the “Save” icon
  • In the dialog window “JPEG/GIF save options”, tick the box for “Save as pro­gres­sive JPEG”
  • Click “Save”

Now the file is ready to be uploaded to your website. If the user’s browser supports the format, your photo or graphic will be loaded as a pro­gres­sive JPEG.

Go to Main Menu