Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Premultiply and un-premultiply alpha when exporting / replacing image #108

Open
Simplestas opened this issue Jan 14, 2023 · 2 comments
Open

Comments

@Simplestas
Copy link

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

@nptr
Copy link
Owner

nptr commented Jan 21, 2023

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.

@Simplestas
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants