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

restoring alpha channel after the Heal transparency action #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

darekjanik
Copy link

When we used the heal transparency we lost the alpha channel settings. We need to restore alpha channel after the heal selection is done. That's what this change is about.

It'd be cool to merge it, cause now It's needed to add alpha channel manually every single time after script is called.

@bootchk
Copy link
Owner

bootchk commented Jun 12, 2018

I could be mistaken, and its been awhile since I looked at the code, but I want to discuss this....

The original behavior seems logical to me. If you are healing transparent pixels, it doesn't leave any transparency, so why should it leave the alpha channel, since it would be empty? In other words, it changes the behaviour/semantics of the plugin? I suppose some users like yourself would go on to add transparency back to the image; would you give an example of your use case?

I am concerned that most existing users will expect the existing behavior, and will be surprised that they now have to manually delete the alpha channel.

I haven't looked at your patch, maybe whether to delete the alpha channel should be an option (checkbox) of the plugin? In your case, the default would be to delete the alpha channel, and you would need to choose the option, but the checkbox might still selected the next time you used the plugin (if you chose "reshow" plugin but not if you started the plugin anew.)

Again, thanks, and I am open, just not convinced yet.

@darekjanik
Copy link
Author

darekjanik commented Jun 13, 2018

Sometimes I use the plugin for retouching and my use case is following: I'm marking some points by the eraser tool and launching the plugin to see that partial result. Then I'm marking some other points and launching the plugin again. And so on. It's very fast for me, just a mouse click and ctrl+f to repeat last action.

I expected that the plugin only fills (currently) transparent areas without changing layer parameters like the alpha channel enabling. Somehow I missed that descriptions says that it removes the alpha channel.

You're absolutely right that we should keep the current behavior as default. I really like your solution with the checkbox and I've just done some adjustments in the code. What do you think?

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