View Single Post
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#652
Originally Posted by D-Iivil View Post
There definitely was something wrong with optimized pngs and how maemo handles those. Images were fine when opening those with PC, but when vieweing them with maemo's image viewer some of those were solid black
I've done some thinking and I have a feeling OptiPNG is aggressivly reducing the bit depth or color palette on these simple one-color images, and probably N900 can't handle a 1-bit PNG file (just like it cannot handle a GIF file that's larger than the screen size... probably no-one thought to test that).

In many cases this reduction results in big savings, for example if a file is saved as RGBA but alpha channel is not used at all, simply by converting to RGB it will reduce 25% of the data in the file that's not needed anyway. But if we think it is causing trouble, you can try experimenting with adding these options to the OptiPNG command line and maybe one of them will fix this problem and still allow you to optimize those files:
Code:
-nb                 no bit depth reduction
-nc                 no color type reduction
-np                 no palette reduction
-nx                 no reductions
 

The Following 2 Users Say Thank You to stlpaul For This Useful Post: