sirjuddington / SLADE

It's a Doom editor
https://slade.mancubus.net
GNU General Public License v2.0
686 stars 104 forks source link

Feature request - pngquant compression #1567

Open Darkcrafter07 opened 9 months ago

Darkcrafter07 commented 9 months ago

PNGQuant compression offers superrior ratios for PNG graphics, it works well for both low and high res contents. The biggest disatvantage here is that it ignores GrAb chunk which is responsible for storing sprite offsets values.

The idea here is to use these tools in such an order:

1) Slade gets the sprite offsets values in memory; 2) PNGQuant gets configured with user parameters and compresses the image; 3) SetPNG tool injects the sprite offsets chunk to that Slade loaded in memory before; 4) PNGOut polishing it up;

?) Multithreading support to speed it all up significantly.

This way compression ratios become much better than using old tools;