Page 1 of 1
PNG files could use some optimisation (again)
Posted: Wed Jul 06, 2011 12:11 pm
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?

Re: PNG files could use some optimisation (again)
Posted: Wed Jul 06, 2011 4:36 pm
by Giorgio Maone
Are they still 24 bit (with 8 bit alpha channel)?
If so, could you send me your set?
Re: PNG files could use some optimisation (again)
Posted: Thu Jul 07, 2011 8:16 am
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.
Re: PNG files could use some optimisation (again)
Posted: Thu Jul 07, 2011 8:28 am
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.
Re: PNG files could use some optimisation (again)
Posted: Thu Jul 07, 2011 2:59 pm
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.
