PNG files could use some optimisation (again)

Bug reports and enhancement requests
Post Reply
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

PNG files could use some optimisation (again)

Post by dhouwn »

By using OptiPNG and PNGOUT with the highest optimisation settings I was able to reduce the size of the skin folder of the newest dev build from 89.5 KiB to 71.5 KiB, not much but eh, why not? :D
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: PNG files could use some optimisation (again)

Post by Giorgio Maone »

Are they still 24 bit (with 8 bit alpha channel)?
If so, could you send me your set?
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: PNG files could use some optimisation (again)

Post by dhouwn »

Oops, indeed some were already PNG8s and some turned then into PNG8s by OptiPNG which should have only happen if the conversion lossless (ie. the source images had <= 2^8 colours and only binary transparency), is this an issue?

Also wouldn't it be better if those tools were rather included in your build configuration, so that you have the optimisations even if you add/change the images in the future? The re-compression does not take that long on such small images.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: PNG files could use some optimisation (again)

Post by Giorgio Maone »

dhouwn wrote:Oops, indeed some were already PNG8s and some turned then into PNG8s by OptiPNG which should have only happen if the conversion lossless (ie. the source images had <= 2^8 colours and only binary transparency), is this an issue?
They definitely don't have binary transparency, because their color/transparency borders are antialiased.
If I turned them into PNG8 you would see trashed contours, especially on dark themes.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: PNG files could use some optimisation (again)

Post by dhouwn »

It's actually both PNGOUT and OptiPNG that try make convert images such as yu-glb16.png into the PNG8 format but for latter at least there's a command line option "-nx" to stop these allegedly lossless reduction methods.
So, with just using OptiPNG with "-nx -o7" on all PNG files I was still able to reduce the size to 83.4 KiB which of course is even more negligible and considering that one apparently can't trust the claims about losslessness (what a word :)) it might be better to forget about this altogether. :(
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0
Post Reply