-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Possible bug in -define for gradient #7143
Comments
I confirm the weirdness. If we use offsets that are less then the dimensions, we get a gradient. For example:
With these parameters, I would expect the top-left of the gradient to be at (150,150), and the gradient would be 400x200 pixels. The gradient does start at y=150, but nothing else is as expected. |
Besides the lack of x offset, it also does not look like the gradient goes to pure red at the top of the gradient. I would have thought the gradient would be a full gradient inside the bounding box. It looks like a crop of a 500x500 gradient rather than a full gradient in the bounding box. The documentation is not clear on this point. |
Gradients theoretically follow the SVG standard. Write an SVG gradient and the |
Here is my SVG file that I saved as grad.svg
Here is the IM command
It is not respecting the X-offset nor the dimension of the bounding box |
Thank you for reporting the issue. We have successfully reproduced it and are actively working on a patch to resolve it. You can expect this patch to be merged into the main GIT branch, later today. As part of our commitment to quality, this fix will also be included in the upcoming beta releases of ImageMagick by tomorrow. Your patience and feedback are greatly appreciated. |
I am still getting a totally red image. No blue gradient. IM 7.1.1.30 Mac OSX Ventura
|
FYI, still only a solid red output in 7.1.1-31 for
|
Thank you for reporting the issue. We have successfully reproduced it and are actively working on a patch to resolve it. You can expect this patch to be merged into the main GIT branch, later today. As part of our commitment to quality, this fix will also be included in the upcoming beta releases of ImageMagick by tomorrow. Your patience and feedback are greatly appreciated. |
This is still not working correctly at least as I expect in IM 7.1.1.31 Mac OSX Ventura
The width is not 400 and height is not 200. It has a width of 250 and height of 50.
|
I am on the same version and do not get that result! |
We tried the command on several Linux boxes and Windows and we also tried with the latest IM version 6 release and they all produced the image above. |
I will try the beta to see if it is there for me. |
It works in IM 7.1.1.32 beta, but not in IM 7.1.1.31 Mac OSX. Are you sure that you are using a clean version of 7.1.1.31 and not a version based upon mods for the next release? |
The simplest solution is to wait for the next release of ImageMagick, sometime this week. |
No problem. That was what I thought also. |
ImageMagick version
7.1.1.29
Operating system
MacOS
Operating system, version and so on
Ventura
Description
I am not sure I understand the following define or perhaps there is a bug. It is not working as I might expect. But I could just not understand how it should work.
-define gradient:bounding-box=widthxheight+x+y
I tried:
magick -size 500x500 -define gradient:bounding-box=400x200+50+200 gradient:red-blue x.png
expecting to see a red-blue gradient inside the 500x500 size. But I got a completely red image
Is my syntax correct?
Steps to Reproduce
See above
Images
see above
The text was updated successfully, but these errors were encountered: