JPEG and PNG are not the only formats

Is there a better way?

30 January 2013

Tags

  • Fairy Tale Twist
  • Performance
  • JPEG is small, but doesn’t have alpha.
  • PNG has alpha, but isn’t small.
  • What if there was a format that combined the best of both?

Enter JPEG. Or rather, JPEG XR: http://en.wikipedia.org/wiki/JPEG_XR

Seems to good to be true? Well… you need to be on Adobe Flash Player 11.0 or newer. To convert our PNG to JXR I used XnView, loaded our largest assets and saves in PXR format with Overlapped Block Filtering enabled.

Results are:

  • Atlas.png 2.7MB Atlas.jxr 769KB A reduction of 73%
  • UI.png 2MB UI.jxr 499KB A reduction of 76%
  • Menu.png 1.9MB Menu.jxr 475KB A reduction of 76%

For these three maps the total file size reduction in 75%.