miku-nyan / Overchan-Android

Meta Imageboard Client
http://miku-nyan.github.io/Overchan-Android
GNU General Public License v3.0
113 stars 55 forks source link

Support PNG gamma #85

Open James-E-A opened 8 years ago

James-E-A commented 8 years ago

Images like these:

Every time you open this thumbnail I get loved tenderly ^ That thumbnail gets generated by any "dumb" (usually server-side) algorithm which processes the image, but when a browser properly supporting gamma views it: Being tenderly loved

For this example, I actually used the Imgur thumbnail API — the first image is Imgur's generated thumbnail: imgur.com/pYzlNfhm.jpg vs imgur.com/pYzlNfh.png

These things are a great prank when browsing a chan; it would be great to have Overchan support them.

miku-nyan commented 8 years ago

It seems that BitmapRegionDecoder doesn't support this. Use webview-based image viewer. Settings -> Gallery -> turn off Image viewer based on built-in library skia.

Note there is another bug (i'm going to fix it), preferences will not apply to the gallery immediately, you should restart the application.