Optimizing images with optipng

In iOS we usually work with lots of PNG files. Optimizing these images with optipng will dramatically reduce app size which will leads to a better user experience specially when downloading the app.
Depending on the image, optimization might change the image to a simple format which should lead to faster load times. (Example: from 4x8 bits/pixel, RGB+alpha to 8 bits/pixel)

Install optipng

brew install optipng

Using optipng

Optimize all images found in current directory and subdirectories.
find . -type f -iname *.png  -print0 | xargs -0 optipng

0 comments :

This work is licensed under BSD Zero Clause License | nacho4d ®