Images bring life to web pages and mobile apps. Effective image processing is crucial to achieving the impact you want and getting optimal web performance. However, not all image processing techniques are easy, reliable, or done in real-time.
In this blog post, we’ll briefly describe the three types of image processing: manual, backend, and on-the-fly image processing. We’ll then show you why on-the-fly image processing delivers superior results.
To meet user expectations for more responsive web pages, many designers and developers manually create multiple versions of the same images, tailored for different screen sizes, device resolutions, and page layouts.
This approach has a lot of problems.
With backend image processing, software automatically generates a few versions of the origin image to cater to a range of devices and browsers. Backend image processing software stores all of the rendered images locally or in the cloud, for future use. This method saves a lot of design and web development time and eliminates many of the errors found in the manual process.
Backend processing is often done using software that’s created in-house, as a one-off solution. Off-the-shelf tools like ImageMagick and Thumbor are also popular options.
If you switch to backend image processing, you will still have many of the same problems you have with manual image processing. You still have to store all the image versions, which costs money. For a large site with lots of images and for sites with user-generated content, the costs are substantial.
This means that you usually don’t have the best-looking image, at the smallest file size, for many of your users. These suboptimal files also take longer to download, further damaging the user experience.
Here’s a summary of the issues with backend image processing:
On-the-fly image processing is a newer, more advanced technology, and is steadily replacing backend image processing.
To process images on the fly, the software renders the best image version in real-time, when the user needs it, instead of generating a set of renders beforehand. Once an image is rendered, it’s stored in cache, rather than in origin storage.
Each user gets the most attractive image, in the smallest file size, and the fastest load time possible:
On-the-fly image processing takes most of the work and expense away from you and delivers a truly optimized result.
This table compares manual image processing, backend image processing, and on-the-fly image processing. However, the table cannot fully describe how much easier and better the newer technology is. To those who have struggled with the older approaches, on-the-fly image processing feels a bit magical; much less work, much less cost, and a much better experience for the user – all yielding better business results.
Image processing |
Manual |
Backend |
On-the-Fly |
---|---|---|---|
Use of best compression |
No |
No |
Yes |
Additional storage costs |
High |
High |
None |
Bandwidth costs |
High |
High |
Low |
Image load time |
Slow |
Slow |
Fast |
User experience |
Poor |
Poor |
Excellent |
User-generated image normalization |
Poor |
Poor |
Excellent |
With on-the-fly image processing, you create an origin image, and then set a few rules. You can either specify the values you want to use for various parameters or let the software optimize the image, compression, etc. for you.
One popular visual media goal is to enhance image colors automatically, especially with user-generated images. imgix offers a complete set of color enhancement options.
Another common goal achieved by on-the-fly image processing is the automatic generation of srcsets, HTML code that offers the browser several different images to choose from. You can use automatic srcset generation to account for different device resolutions. You can see a demo of how this works in our new video on this and related topics.
With its many advantages in cost, ease of use, and end-user experience, on-the-fly image processing is a superior option to backend processing for image-intensive, high-traffic websites.
imgix is the leader in on-the-fly image processing, providing robust transformations, simple deployment, and fast delivery through a global image CDN. If you have any questions regarding image optimization or imgix, contact us at [email protected] or sign up for a free account.
Also published here.