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

Transparent Pixels get their RGB values turned to white #6

Open
armadillu opened this issue Apr 29, 2015 · 1 comment
Open

Transparent Pixels get their RGB values turned to white #6

armadillu opened this issue Apr 29, 2015 · 1 comment

Comments

@armadillu
Copy link

Hi, first of all, thanks for sharing the source of this! I am trying to find a solution modifying RGB values for transparent pixels (see attached image), and I came across this.

I managed to recompile the plugin in Xcode using your source, after a few changes to the photoshopsdk (some headers not found and such). I am unfamiliar with the PS plugin SDK, but I have a question.

I am wondering, when the plugin gets the pixel data hands off from Photoshop, is the data already "dirty" with the fully transparent pixiels turned to white? Or it's something that the plugin does? If so, is there a way to tell Photoshop not to do before you get the pixel data? I'm really looking for a way to disable this behavior.

Thanks!

png-woes

@fnordware
Copy link
Owner

Yeah, the RGB values for transparent pixels in Photoshop are sort of undefined. You never know what you might get. The "Clean Transparent" feature will turn them all black.

You could also put your Alpha in the channels palette and get full control over the RGB.

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

No branches or pull requests

2 participants