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

Keep transparency #29

Open
huideyeren opened this issue Oct 29, 2023 · 2 comments
Open

Keep transparency #29

huideyeren opened this issue Oct 29, 2023 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@huideyeren
Copy link
Owner

By setting the output file as PNG, it would be possible to keep the transparency information of transparent PNGs.

Currently, images with transparency have lost transparency.

@huideyeren huideyeren added the enhancement New feature or request label Oct 29, 2023
@huideyeren huideyeren added this to the PyCon APAC 2023 Sprint milestone Oct 29, 2023
@huideyeren
Copy link
Owner Author

Transparency shall be retained only if the source is a PNG file with the option.

@huideyeren huideyeren moved this to Todo in Anshitsu project Oct 29, 2023
@huideyeren
Copy link
Owner Author

I realized that this could not be done by just converting.

I think I can do it by making the original image non-transparent while creating a mask on the pixels with transparency 1, and then after changing the color, etc., using the mask I created to set the areas of the original image that had transparency 1 to transparency 1 again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant