imagick icon indicating copy to clipboard operation
imagick copied to clipboard

shadowImage() Coordinates Have no Effect

Open jmorfis opened this issue 1 year ago • 1 comments

->shadowImage() seems broken.

The x, y coordinates do not have any affect. The shadow coordinates appear to be fixed slightly to the bottom-right as you increase the sigma. But the x,y (parameters 3,4) do nothing.

These two yield the same exact results: $shadow->shadowImage( 100, 2, 0, 0 ); $shadow->shadowImage( 100, 2, 100, 100);

jmorfis avatar Aug 21 '24 16:08 jmorfis

After some testing it seems like the offset is actually based on the $sigma param. To position the shadow behind the original I have to offset it - 2 * $sigma.

stefanfisk avatar Jan 07 '25 12:01 stefanfisk