November 7, 2022

What is a progressive JPEG and how can it be useful for websites?

Let's see what are the advantages of a progressive JPEG and the difference between a normal JPEG.

Did you know that slow loading times are one of the most common challenges for having a good User Experience? Here are some techniques to speed up load times and make your website much more intuitive.

The JPEG image format is one of the image formats most commonly used on the Web. The format is often used for colorful and complex images such as photographs. The JPEG specification includes a range of valid file extensions, however the most common are .jpg and .jpeg.

JPEG stands for Joint Photographic Experts Group and was developed especially for photos. JPEG will compress a photo or image with gradations more efficiently than PNGS. When saving JPEG files, you can save the image with different quality levels to reduce the file size. As mentioned, you can save the photo as a JPEG or progressive JPEG depending on your audience and goal. You may also see references to JPEG2000, although this format has better compression, it is not supported by all browsers.

Regardless of the extension used, all JPEG images will be treated in much the same way. Although not all JPEG images are created equally. There is a lesser known setting in specifying image formats. This setting, called Progressive Mode, can dramatically improve the experience of using JPEG files on the web.

Normal JPEG vs Progressive JPEG

The biggest defining factor of an image format is generally compression - methods vary widely. In fact it is what makes some formats more suitable than others depending on how the image is used. Even within the JPEG format you can get extremely variable results depending on the export settings used.

In most imaging programs, the type of JPEG created when saving would be considered “Baseline”. To be brief, the best way to imagine baseline or baseline mode is for the image to start from the top and be interpreted line by line. Moving the image down each line of pixels at a time as it compresses and / or displays the image.

For those who still remember the fundamentals of old GIFs. Progressive JPEG format can be understood as the equivalent of Intelaced GIF format.

An interlaced GIF does not show its scan line linearly from top to bottom, but instead rearranges it so that the content of the GIF becomes clear even before it finishes loading. For example, the GIF viewer can display lines at the top of the image, then in the center, then at the end, and will continue to fill in the blanks until the image is fully loaded.

 

Progressive JPEGs are similar to interlaced GIFs, but their rendering scheme is generally superior to that used with GIFs. With some applications it is also possible to change the order in which scanlines are displayed. Unlike interlaced GIFs, progressive JPEGs are often smaller than their basic counterparts.

The trade-off here is that it only loads some of the image data at a time. This means that the image will load at full size with a pixelated appearance and will become clearer as it loads.

See it in action

Sometimes the best way to understand something is to see it in action. So that's exactly what we're going to do here, we'll have the exact same image saved as both types of JPEGs to compare.

So let's start by taking a high quality image to test with; in our case we will use a Pexels photo of some sleeping kittens. Since this is a high resolution image, we will resize it a bit before our test, so we will resize it by about half. Now that it has been resized, we will export two versions of the image, one in baseline and one progressive. (Both images will use the exact same settings other than this option, and we're using GIMP to create the images.)

NORMAL JPEG

PROGRESSIVE JPEG

So even though these images are quite large, it is sometimes difficult to see the difference in their upload process. Below each image is a “timeline” view of how the image is loaded over time. Keep in mind that the timeline visualization provided is heavily dramatized to illustrate the idea. If you were to load the page without  no local cache, you may actually see this behavior when loading images!

Advantages of progressive JPEG

On a website, progressive JPEG can improve the user experience. Although blurry, visitors can already see the entire image at first glance. Additionally, being generally smaller in size, progressive JPEG can also reduce the use of resources such as bandwidth and disk space, helping your website load faster.

Popular browsers, such as Firefox and Chrome, also support progressive images. But if you are using an older version of Internet Explorer (before Windows 7), be sure to install the latest update to enable the feature.

Conclusion

If you want the images on your website to load faster, it is best to change them to the progressive JPEG format even if you use modern formats like webp or AVIF you'll always have to serve old JPEG formats as fallbacks for browsers that don't yet support them.

 

Do you have doubts? Don't know where to start? Contact us!

We have all the answers to your questions to help you make the right choice.

Chat with us

Chat directly with our presales support.

0256569681

Contact us by phone during office hours 9:30 - 19:30

Contact us online

Open a request directly in the contact area.

DISCLAIMER, Legal Notes and Copyright. RedHat, Inc. holds the rights to Red Hat®, RHEL®, RedHat Linux®, and CentOS®; AlmaLinux™ is a trademark of the AlmaLinux OS Foundation; Rocky Linux® is a registered trademark of the Rocky Linux Foundation; SUSE® is a registered trademark of SUSE LLC; Canonical Ltd. holds the rights to Ubuntu®; Software in the Public Interest, Inc. holds the rights to Debian®; Linus Torvalds holds the rights to Linux®; FreeBSD® is a registered trademark of The FreeBSD Foundation; NetBSD® is a registered trademark of The NetBSD Foundation; OpenBSD® is a registered trademark of Theo de Raadt; Oracle Corporation holds the rights to Oracle®, MySQL®, MyRocks®, VirtualBox®, and ZFS®; Percona® is a registered trademark of Percona LLC; MariaDB® is a registered trademark of MariaDB Corporation Ab; PostgreSQL® is a registered trademark of PostgreSQL Global Development Group; SQLite® is a registered trademark of Hipp, Wyrick & Company, Inc.; KeyDB® is a registered trademark of EQ Alpha Technology Ltd.; Typesense® is a registered trademark of Typesense Inc.; REDIS® is a registered trademark of Redis Labs Ltd; F5 Networks, Inc. owns the rights to NGINX® and NGINX Plus®; Varnish® is a registered trademark of Varnish Software AB; HAProxy® is a registered trademark of HAProxy Technologies LLC; Traefik® is a registered trademark of Traefik Labs; Envoy® is a registered trademark of CNCF; Adobe Inc. owns the rights to Magento®; PrestaShop® is a registered trademark of PrestaShop SA; OpenCart® is a registered trademark of OpenCart Limited; Automattic Inc. holds the rights to WordPress®, WooCommerce®, and JetPack®; Open Source Matters, Inc. owns the rights to Joomla®; Dries Buytaert owns the rights to Drupal®; Shopify® is a registered trademark of Shopify Inc.; BigCommerce® is a registered trademark of BigCommerce Pty. Ltd.; TYPO3® is a registered trademark of the TYPO3 Association; Ghost® is a registered trademark of the Ghost Foundation; Amazon Web Services, Inc. owns the rights to AWS® and Amazon SES®; Google LLC owns the rights to Google Cloud™, Chrome™, and Google Kubernetes Engine™; Alibaba Cloud® is a registered trademark of Alibaba Group Holding Limited; DigitalOcean® is a registered trademark of DigitalOcean, LLC; Linode® is a registered trademark of Linode, LLC; Vultr® is a registered trademark of The Constant Company, LLC; Akamai® is a registered trademark of Akamai Technologies, Inc.; Fastly® is a registered trademark of Fastly, Inc.; Let's Encrypt® is a registered trademark of the Internet Security Research Group; Microsoft Corporation owns the rights to Microsoft®, Azure®, Windows®, Office®, and Internet Explorer®; Mozilla Foundation owns the rights to Firefox®; Apache® is a registered trademark of The Apache Software Foundation; Apache Tomcat® is a registered trademark of The Apache Software Foundation; PHP® is a registered trademark of the PHP Group; Docker® is a registered trademark of Docker, Inc.; Kubernetes® is a registered trademark of The Linux Foundation; OpenShift® is a registered trademark of Red Hat, Inc.; Podman® is a registered trademark of Red Hat, Inc.; Proxmox® is a registered trademark of Proxmox Server Solutions GmbH; VMware® is a registered trademark of Broadcom Inc.; CloudFlare® is a registered trademark of Cloudflare, Inc.; NETSCOUT® is a registered trademark of NETSCOUT Systems Inc.; ElasticSearch®, LogStash®, and Kibana® are registered trademarks of Elastic NV; Grafana® is a registered trademark of Grafana Labs; Prometheus® is a registered trademark of The Linux Foundation; Zabbix® is a registered trademark of Zabbix LLC; Datadog® is a registered trademark of Datadog, Inc.; Ceph® is a registered trademark of Red Hat, Inc.; MinIO® is a registered trademark of MinIO, Inc.; Mailgun® is a registered trademark of Mailgun Technologies, Inc.; SendGrid® is a registered trademark of Twilio Inc.; Postmark® is a registered trademark of ActiveCampaign, LLC; cPanel®, LLC owns the rights to cPanel®; Plesk® is a registered trademark of Plesk International GmbH; Hetzner® is a registered trademark of Hetzner Online GmbH; OVHcloud® is a registered trademark of OVH Groupe SAS; Terraform® is a registered trademark of HashiCorp, Inc.; Ansible® is a registered trademark of Red Hat, Inc.; cURL® is a registered trademark of Daniel Stenberg; Facebook®, Inc. owns the rights to Facebook®, Messenger® and Instagram®. This site is not affiliated with, sponsored by, or otherwise associated with any of the above-mentioned entities and does not represent any of these entities in any way. All rights to the brands and product names mentioned are the property of their respective copyright holders. All other trademarks mentioned are the property of their respective registrants.

JUST A MOMENT !

Have you ever wondered if your hosting sucks?

Find out now if your hosting provider is hurting you with a slow website worthy of 1990! Instant results.

Close the CTA
Back to top