What PNG format should I use PNG 8 or PNG 24? Which one is better for the website. I am confused by this. What is fundamentally different between PNG 8 and PNG 2?
Png-24. Png-24 has alpha transparency (where Png-8 has only on / off transparency).
Png-8 is indexed. Png-24 lossless.
Png-24 is better in almost every way.
http://www.elated.com/articles/understanding-image-formats/
PNG has several modes that you can use. It may contain:
, 256 , . . , , . truecolour, , , -.
, . , 256 , , . ββ, . , -, , PNG-24, .
, , PNG *, , PNG-24 : " " (8 ), "" "" , , , PNG-32, - (). PNG-8 (256 , 24- ) , , . GIF-; " ", "" "" , ( 256 ββ , ). " ", " " 256 "" , PNG-8 ; , GIF , PNG-8... JPG, PNG-24; "PNG", , "" PNG-8 , , PNG-24/32 ok .
I wrote an article about this: PNG that works , which lists all the main PNG options and their trade-offs / compatibility.
In short, use PNG8 (palettes) whenever possible, as the file size is much smaller. You can have full alpha transparency in PNG8 if you use good tools (Photoshop is not suitable for PNG).
Source: https://habr.com/ru/post/1749734/More articles:Dependency properties, change notification, and setting values ββin the constructor - c #UIAlertView subclass with text fields for iOS 4 - iphoneIt is possible to set a filter on a subform from the parent form before loading subform data - ms-accessBreadcrumbs logic in MVC applications - phpAbout sorting Algorithms applied to stacks and queues - javaUIViewController removes subview - iphoneUsing delegation methods and methods - c #How to use taglib - javaCalling SDL / OpenGL from assembly code on Linux - assemblyPHP Eclipse - import existing CakePHP projects - cakephpAll Articles