php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58701 shadowImage() x/y has no effect
Submitted: 2009-05-22 05:28 UTC Modified: 2010-02-04 17:43 UTC
From: mansion@php.net Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.2.9 OS: OSX and Linux Centos5.1
Private report: No CVE-ID: None
 [2009-05-22 05:28 UTC] mansion@php.net
Description:
------------
I have tested with your own examples and changing x and y 
parameters has no effect.

Reproduce code:
---------------
$im = new Imagick( 'strawberry.jpg' );
$im->setImageFormat('png32');
$im->thumbnailImage( 200, null );
$shadow = $im->clone();
$shadow->setImageBackgroundColor( new ImagickPixel( 'black' ) );
$shadow->shadowImage( 40, 2, 30, 30 );
$shadow->compositeImage( $im, Imagick::COMPOSITE_OVER, 0, 0 );
header( "Content-Type: image/png" );
echo $shadow;

Expected result:
----------------
Shadow should be far away.

Actual result:
--------------
Shadow is still at approx 5,5 which I suppose are the 
defaults.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-23 07:16 UTC] mkoppanen@php.net
Reproduced
 [2009-07-02 18:24 UTC] mkoppanen@php.net
Looks like an upstream issue
 [2010-02-04 14:07 UTC] tom at sogetthis dot com
so this is an imagemagick problem? what version do i have to downgrade to - this is essential for me.
 [2010-02-04 17:43 UTC] mkoppanen@php.net
Can you try construct like the following: 
http://valokuva.org/~mikko/shadow.phps

Does this work for setting the different offset values?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 05:01:31 2024 UTC