WEBSITE & App Builder

Lorem Ipsum is simply dummy text of the printing and type setting industry. Lorem Ipsum has been the industry’s standard dummy text.

Image Optimization in PHP

Why should I care about Image Optimization?

Faster loading page is what we all need, this is the reason why we use google search. It simply loads faster than any other search engine.

Web-pages contain images and images are one of the components which contribute most to the size of any webpage. More heavy the webpages, more it will take to load.

Webpages may contain Images which are not optimized. In simple terms, this means the image size can be reduced without contributing to the quality of the image.

Google and other Search engines recommend a better user experience so it very likely that Fast loading pages are given better ranks then slow loading pages.

Optimizing Image by choosing the right format JPEG, PNG, GIF, WEBP

JPEG and PNG are primary choice for images today, the reason is that JPEG and PNG are universally accepted.

A suggestion is given by Google Light box to optimize our image format.

Serve images in next-gen formats :Image formats like JPEG 2000, JPEG XR, and WebP often provide better compression than PNG or JPEG, which means faster downloads and less data consumption.

Google Lighthouse
FormatSupport in Browsers
JPEG 2000Supported only in Safari
JPEG XRWorks only in IE
WebPWorks on All except Safari

Considering the Support only WebP seems to be the best format. But because it lacks support on Safari which has 15% of the share. It’s not recommended if we want to support Safari.

TIP: You can use IrfanView to bulk convert your images into any format. Its Free, Lightweight and easy to use.