Best practices for optimizing PNG?

I would like to prepare my PNGs for better optimization, so I can get the best image quality (if possible, lossless) and the smallest size.

From what I understand, I should use: PNG, 72 dpi, RGB, but what else?

Here's what we find in the iPhone HIG:

Note: * The standard bit depth for icons and images is 24 bits (8 bits each for red, green, and blue) plus an 8-bit alpha channel. The PNG format is recommended because it preserves the color depth and supports the embedded alpha channel.

I assume this means that we have to save the image as PNG 24 and create them in 8 bit mode? But I also read about 32 bits for better quality?

The rotation scheme (the witch adds the file size) allows PNG to be displayed faster. Does this apply to the iPhone?

Thank.

+3
source share
3 answers

I suggest using ImageAlpha (lossy) on as many images as you can, because it greatly reduces their size.

Optimize all your images with ImageOptim - it will remove all invisible debris and recompress data.

Disable Xcode Conversion , as it overrides other optimizations and can make images much slower to load .

+4
source

24 - , 8 . 32 - RGB 8- -. , () , 32- PNG, - 24-.

PNG, Xcode pngcrush iPhone BGR.

+1

JPEG (Export for web in photoshop) 70.

pngcrunch, , ...

http://pmt.sourceforge.net/pngcrush/

: 24- PNG, Photoshop

0

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


All Articles