kornelski / ImageAlpha

Mac GUI for pngquant, pngnq and posterizer
https://pngmini.com
GNU General Public License v2.0
470 stars 63 forks source link

WebP and JPEG2000 support #2

Closed gunta closed 11 years ago

gunta commented 11 years ago

Hi, I'm developing HTML5 mobile games and I've been researching if there's a way to make big sprite images even smaller.

To put this in a perspective, right now, a png-quantized sprite sheet of around 2000x2000 pixels is pretty big, around 1MB in file size, which is just too big for mobile.

So looking out there, I've found that:

  1. Android supports Google's own WebP (lossy with alpha), and that
  2. iOS supports JPEG2000 (lossy with alpha).

I've been playing with the command line for compressing the image, and I'm getting file sizes as 20%~70% smaller than the PNG8 quantized version.

But because this is a lossy process, doing it from the command-line doesn't let you control in realtime the quality parameters.

So if ImageAlpha would support WebP/JPEG2000, we could easily create very small files and optimized for each platform, making possible HTML5 mobile games with lot's of graphics and million of colors just a reality.

What do you think on the subject?

Thank you!

kornelski commented 11 years ago

One bug tracker at a time: http://code.google.com/p/imagealpha/issues/detail?id=28