imgsizer

Adds WIDTH and HEIGHT attributes to IMG tags in HTML files

Install

All systems
curl cmd.cat/imgsizer.sh
Debian Debian
apt-get install imgsizer
Ubuntu
apt-get install imgsizer
image/svg+xml Kali Linux
apt-get install imgsizer
Windows (WSL2)
sudo apt-get update sudo apt-get install imgsizer
Raspbian
apt-get install imgsizer

imgsizer

Adds WIDTH and HEIGHT attributes to IMG tags in HTML files

The imgsizer script automates away the tedious task of creating and updating the extension HEIGHT and WIDTH parameters in HTML IMG tags. These parameters help browsers to multi-thread image loading, instead of having to load images in strict sequence in order to have each one's dimensions available so the next can be placed. This generally allows text on the remainder of the page to load much faster. The package needs either the imagemagick package or both the file and libjpeg-progs packages.