-
Notifications
You must be signed in to change notification settings - Fork 2
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
Sparse color barycentric example #7
Comments
Why did you open the issue here? What are you seeing where? |
Should I open the issue in some other category? 'Barycentric' example in https://usage.imagemagick.org/canvas/ does not work as I would expect reading the example doc.
Not sure I understand. |
This is the repository for the Freds-Scripts and not our Usage website. I will move this. |
I see, thanks. |
You are using the wrong example from https://usage.imagemagick.org/canvas/#barycentric Try
Which produces a colorful triangle on transparent background. You were using the code for the example above this that makes a full colorful image. |
Thanks, Fred, that is true. However my concern is, that the creation of sparse_bary_triangle_2.png in the doc does not produce the documented result as I understand, is that correct? |
Which example are you really using? Both examples produce the correct image as shown on his page if you remove the examples from the page and view them in a viewer that supports transparency (for the second image). The first example produces the full colorful image as he shows. The second example produces a triangle on transparent background. It looks white because it is displayed on the page on a white background (which shows through the transparency). Please clarify which example you are complaining about and what image you get? |
I am sorry, I do not probably understand and do not know how to rephrase my initial comment. I basically run the command from there (taken from https://usage.imagemagick.org/canvas/) to create sparse_bary_triangle_2.png, as the doc says. Instead of https://usage.imagemagick.org/canvas/sparse_bary_triangle_2.png I get the image in my initial comment. |
I am sorry for these four issues we have found. Anyway, thanks to all (Fred, Anthony, Dirk, Christy, ...) for this great documentation. |
Sorry, my mistake. I do get your result, which does not match the posted example. I will look into it, but I suspect something changed since that was posted. |
The example works in IM 6 (as when created). But due to changes for IM 7, it needs a slight modification due to how the alpha channel is processed. IM 6
IM 7
Both generate: |
Fred, awesome, Thank you! |
does not produce colorful triangle on white background:
https://usage.imagemagick.org/canvas/sparse_bary_triangle_2.png
but colorful canvas:
I tried several versions of ImageMagick, e. g. 7.1.1-43 or 7.0.7-34 with same result. I tried also 6.8.8.1 and expected triangle was produced indeed.
The text was updated successfully, but these errors were encountered: