spillerrec / cgCompress

Efficiently store Visual Novel cgs by using a multi-image format for storing all variations of one image in one file. This way, only the differences need to be stored which reduces the file size significantly.
GNU General Public License v3.0
16 stars 1 forks source link

Detect the need of custom overlay #5

Open spillerrec opened 7 years ago

spillerrec commented 7 years ago

The FLIF api doesn't currently save transparent colors, making it impossible to use the overlay method for transparent images with this format, which is always used, even when not needed no transparency is needed. So FLIF support is uterly broken. Furthermore, FLIF compresses better when we ignore transparent colors, so only saving them when needed could save us a little. This is likely also the case with WebP, though I haven't tried.

Work items:

spillerrec commented 7 years ago

Patch have been submitted and merged into FLIF for fixing the transparency issue.

I have made it possible to control this option in the Qt plugin by using the compression option, setting it to 1 instead of 0 removes alpha information. This is yet to be done with the WebP plugin.