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

feat(nodes.py): Add support for alpha channel output in LoadImage node #6829

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dzqdzq
Copy link

@dzqdzq dzqdzq commented Feb 16, 2025

#feature-request

feat(nodes.py): Add support for alpha channel output in LoadImage node

This commit enhances the LoadImage node by adding support for outputting the alpha channel of images. The change ensures that images with transparency can be correctly handled and used in subsequent nodes.

Changes made:

  • Modified the load_image method to include an out_alpha parameter.
  • Updated the method to check for the alpha channel in the loaded image and output it if requested.

This enhancement allows for more flexible image processing workflows, particularly in scenarios where transparency is crucial.

@Amorano
Copy link

Amorano commented Feb 22, 2025

#2845

i prefer my explicit version that does not require a switch. you get all three things if they exist as explicit outputs instead of making them pick to output alpha 😁

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

Successfully merging this pull request may close these issues.

2 participants