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

Allow using alpha in cpd files #932

Closed
luca-moscatelli opened this issue Feb 29, 2024 · 2 comments · Fixed by #971
Closed

Allow using alpha in cpd files #932

luca-moscatelli opened this issue Feb 29, 2024 · 2 comments · Fixed by #971
Labels
enhancement New feature or request

Comments

@luca-moscatelli
Copy link

my problem is this : i have this cpd file
color0=12, 224, 47
color1=246, 236, 22
color2=255,28, 21
numPoints=3
sample0=0
sample1=1
sample2=2
It works well, but if I use alpha like color0 = 12, 224, 47, 0, the color is corrupted and the result goes from black to white. Did I make a mistake or is it a problem with xcube?"

@forman
Copy link
Member

forman commented Feb 29, 2024

Hi @luca-moscatelli, thanks for reporting. Have a look into the logs. You should actually see an error Illegal SNAP *.cpd format:. Unfortunately, color values must be R, G, B. For no good reason actually. I relabel this issue and rename it. Hope this ok for you.

@forman forman added the enhancement New feature or request label Feb 29, 2024
@forman forman changed the title i cant use alpha for cpd file Allow using alpha in cpd files Feb 29, 2024
@luca-moscatelli
Copy link
Author

ok thanks !!

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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants