msstyleEditor icon indicating copy to clipboard operation
msstyleEditor copied to clipboard

Premultiply and un-premultiply alpha when exporting / replacing image

Open Simplestas opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. PNGs inside msstyles use premultiplied alpha images, but editors expect non-premultiplied alpha

Describe the solution you'd like Automatically un-premultiply alpha when exporting image and automatically premultiply alpha when replacing.

Describe alternatives you've considered Some helper tools can do alpha pre-unpre/mutltiplication

Simplestas avatar Jan 14 '23 16:01 Simplestas

Thanks for the info. Not sure what I'll do. Performing this step doesn't seem to be something msstyleEditor should be doing.

But I'll investigate what the common practices are in this regards and if really all styles images must be premultiplied.

nptr avatar Jan 21 '23 22:01 nptr

Here's a crude patch for that, too bad that netfx SaveFileDialog does not allow adding checkboxes premult.patch

Simplestas avatar Jan 22 '23 09:01 Simplestas