📜 ⬆️ ⬇️

Optimize PNG and JPEG without losing quality. Part 2

Hello Habr!
So it is time for the second, and hopefully long-awaited part. The abbot recommend to get acquainted with the first part , because without this it will be hard to understand what I will write about. In this part, I will move away from theory to practice, namely, I will show a small project for the integrated optimization of images.


image

Image Catalyst is a collection of programs for integrated optimization / compression of PNG and JPEG images without loss of quality within the same format. It makes sense to use to speed up the loading of graphics elements (in particular, sprites) web pages.
')
I want to immediately warn, I am not responsible for the operation of this application. You use this application at your own risk. It is strongly recommended that before optimizing, make a backup copy of the images in order to avoid undesirable consequences and carefully study this article.

Download Image Catalyst 2.0 from here (only for windows).

PNG Optimization Tools


For complex optimization of PNG images, the following applications are used:
In detail about these applications I told in the first part.

JPEG Optimization Tools


For complex optimization of JPEG images, the following applications are used:
In detail about these applications, I also told in the first part.

Additional software


Today, the application is also used - iniTool 1.20 from 07/07/2010 .

PNG optimization




PNG optimization options

Both methods of displaying images in the browser when loading are supported:
PNG optimization algorithms

Based on the PNG optimization parameters, the following optimization algorithms were created:
PNG optimization modes:

In the last part, we said that the more time spent on PNG optimization, the higher the degree of optimization, which is why several optimization modes were developed:
In some cases, the compression ratio may be higher by 10% or more.

Jpeg optimization




JPEG optimization options

Two methods of displaying images in the browser when loading are supported:
JPEG optimization algorithms

Based on the JPEG optimization parameters, the following optimization algorithms were created:

Optimization tools

Thank you for your help


I wanted to thank x128 and res2001 separately (if the article dials +100, then I will send an invite), without these people my project could hardly be implemented. I also wanted to thank all the author of the applications that are used in Image Catalyst.

A few words about competitors


Here I will tell a few words about competitors, or rather about one of them, because I consider him a worthy competitor. ScriptPNG and ScriptJPG are quite interesting projects, unlike Image Catalyst, the optimization of PNG and JPEG images is divided into two separate projects and there is no support for parallel PNG optimization. I also recommend visiting the project site itself, since recently there appeared articles about optimization of PNG.

And a bit more...


There is one rather interesting project - JPGCrush - created specifically for optimizing JPEG without losing quality, being in turn an add-on over JPEGTran. Creates JPEG exclusively in Progressive format. The only drawback is that it works only on * nix-systems. If anyone can help me with this problem, please contact the PM.

It would be nice to make a GUI for my project, but I have no such knowledge, if anyone has the time and desire to implement the GUI, then write in a personal.

Source: https://habr.com/ru/post/121096/


All Articles