k-kawa / aseprite

Automatically exported from code.google.com/p/aseprite
0 stars 0 forks source link

Accurate Sprite Quantize #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What do you need to do?
It would be nice if ASE could accurately extract the palette from a RGB image 
and assign palette values to each pixel.

How would you like to do it?
This would be an extension of converting a sprite to 8bit from 32bit but with 
the additional step of assigning accurate palette values before the conversion.

i.e 
if (numofcolours < 256) accurately quantize the palette
else quantize an optimum palette.

Original issue reported on code.google.com by poulton....@googlemail.com on 12 Dec 2010 at 12:10

GoogleCodeExporter commented 8 years ago
Currently you can quantize the palette using the "Quantize" button of the 
Palette Editor (F4) before the RGB -> Indexed conversion. Anyway I think it is 
not accurately enough when the RGB image contain less than 256 colors.

I was working for the next release in a replacement of the current RGB palette 
quantization with the one which comes in jpeglib (which is thread-safe, the 
current one is not thread-safe and is giving problems to generate image 
previews in the File Open dialog).

Your idea to accurately quantize palettes when "numofcolours < 256" is very 
good. I'll try to implement it soon.

Original comment by davidcapello on 12 Dec 2010 at 12:25

GoogleCodeExporter commented 8 years ago

Original comment by davidcapello on 12 Dec 2010 at 8:15

GoogleCodeExporter commented 8 years ago

Original comment by davidcapello on 3 Mar 2011 at 2:35

GoogleCodeExporter commented 8 years ago
This feature is implemented in master branch. Anyway there are performance 
issues. I'll leave this open for 1.0 to review the new quantizer.

Original comment by davidcapello on 10 Aug 2011 at 2:10

GoogleCodeExporter commented 8 years ago

Original comment by davidcapello on 21 Nov 2013 at 3:00