3

OK, this is what I need :

  • Lossy and/or Lossless compression (all options are going to be considered, although Lossless compression will be favoured)
  • PNG and JPG files support
  • Cocoa-friendly code and easy integration

I've used OptiPNG in the past but I'm currently looking for an alternative.

Any suggestions?

Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223

1 Answers1

0

For lossy PNG compression use libimagequant (it will convert RGB/RGBA data to palette+alpha, which is 3 times smaller) combined with lodePNG (which supports palette+alpha format, unlike Cocoa's built-in methods).

Kornel
  • 97,764
  • 37
  • 219
  • 309