Hi,
by adding a reflection to my preset, I get the following errors:
# warning: imagecopy(): supplied argument is not a valid Image resource in /var/www/web64/html/sites/all/modules/imagecache_effects/imageapi.inc on line 135.
# warning: imagecopymerge(): supplied argument is not a valid Image resource in /var/www/web64/sites/all/modules/imagecache_effects/imageapi.inc on line 149.
# warning: imagecopymerge(): supplied argument is not a valid Image resource in /var/www/web64/sites/all/modules/imagecache_effects/imageapi.inc on line 149.
# warning: imagecopymerge(): supplied argument is not a valid Image resource in /var/www/web64/sites/all/modules/imagecache_effects/imageapi.inc on line 149.
# warning: imagecopymerge(): supplied argument is not a valid Image resource in /var/www/web64/sites/all/modules/imagecache_effects/imageapi.inc on line 149.
...
note that the last warning repeats as much as I set up the height of the reflection.
for example: if I enter a height of 30, I get 30 times warning: imagecopymerge(): supplied argument is not a valid Image resource. if I enter a height of 100, I get the error 100 times.
I use ImageAPI GD2 on a GD library 2.0 or higher.
Comments
Comment #1
phildu commentedsame error for me
Comment #2
jimakt commentedsame error for me
Comment #3
helmym commentedHi,
the problem was fixed for me by replacing every '->res' by '->resource' in imagecache_effects/imageapi.inc
Comment #4
mbria commentedPatch contributed at http://drupal.org/node/401694
As is said, it won't work without the patch.
Comment #5
steven jones commentedDuplicate of #401694: $image->resource, not $image->res.
Comment #6
Bimble commented*deleted*
Comment #7
BrianLewisDesign commentedin the file: imagecache_effects/imageapi.inc
replace all: ->res with: ->resource
replace: imagedestryoy with: imagedestroy
here is the working file with updates for version imagecache_effects-6.x-1.1