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.

CommentFileSizeAuthor
#7 imageapi.zip2.92 KBBrianLewisDesign

Comments

phildu’s picture

same error for me

jimakt’s picture

same error for me

helmym’s picture

Hi,

the problem was fixed for me by replacing every '->res' by '->resource' in imagecache_effects/imageapi.inc

mbria’s picture

Priority: Normal » Critical

Patch contributed at http://drupal.org/node/401694

As is said, it won't work without the patch.

steven jones’s picture

Status: Active » Closed (duplicate)
Bimble’s picture

*deleted*

BrianLewisDesign’s picture

StatusFileSize
new2.92 KB

in 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