[Request] PNG8 Palette Selection

0 favourites
  • 8 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • Hi,

    Recently I've been able to reduce my download overhead by up to 80% (though overall about 50%) through further reducing outputted image palettes, then rerunning through PNGOUT, OptiPNG, and DeflOpt.

    Here's an example of quality loss and size difference (the size difference is even before running through PNGOUT, OptiPNG, and DeflOpt):

    <img src="http://i.imgur.com/PD6sb2x.jpg" border="0" />

    Of course many images don't work at 16 colours, but many do at 64 or 128.

    I'd imagine that the dialog could look something like this.

    <img src="http://i.imgur.com/MOisC41.png" border="0" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If you import images with 16 colors in to Construct 2, does it manage to export them at the same reduced size? (The exporter does run all PNG-8s through PNGOut).

    I'm not sure about the implementation of an optimal quality palette reduction, so it might be better to do this in external tools then import them with their colors reduced.

  • Ashley yep, when importing a 16 colour palette, that is maintained on export.

    According to the PNGOut documentation, you can override bit depth with the /d# flag? Would this do optimal palette reduction automatically?

  • I'm not sure, I haven't looked in to this area much. Does it work for you? There are lots of different algorithms to reduce color depth, such as simple rounding, perceptual rounding, dithering, and probably other kinds of analysis I'm not aware of. Which does PNGOut do? Which are you after specifically?

  • Ashley you're right, PNGOut doesn't handle color depth reduction automatically. Never mind, I've got a batch process in Fireworks that handles the conversion cleanly enough. I'll stick with that for the time being. Thanks for the replies!

  • Ashley : you can add some PNG quantization to approach that via PNGQuant in the tools proposed by Construct : http://pngquant.org/

  • We already use PNGNQi to do a high-quality 256-color reduction of high-color images when you set to use PNG-8 in the editor. Does that not do the same job mostly?

  • Ashley : ah, then yes, the job is the same. PNGQuant is using a variation on the Median Cut algorithm to do the color reduction while PNGNQi is using a variation over a neural network. In the end, the result should be close <img src="smileys/smiley2.gif" border="0" align="middle" />.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)