Closed (fixed)
Project:
ImageCache Actions
Version:
6.x-1.4
Component:
Text Actions Module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2009 at 05:00 UTC
Updated:
8 Apr 2009 at 22:10 UTC
using 3 text overlays...
imagesx(): supplied argument is not a valid Image resource in /home/content/m/c/a/mcarper/html/sites/all/modules/imageapi/imageapi_gd.module on line 316.
imagesy(): supplied argument is not a valid Image resource in /home/content/m/c/a/mcarper/html/sites/all/modules/imageapi/imageapi_gd.module on line 316.
magecreatetruecolor() [<a href='function.imagecreatetruecolor'>function.imagecreatetruecolor</a>]: Invalid image dimensions in /home/content/m/c/a/mcarper/html/sites/all/modules/imageapi/imageapi_gd.module on line 317.
imagecreatetruecolor() [<a href='function.imagecreatetruecolor'>function.imagecreatetruecolor</a>]: Invalid image dimensions in /home/content/m/c/a/mcarper/html/sites/all/modules/imageapi/imageapi_gd.module on line 318.
imagecopy(): supplied argument is not a valid Image resource in /home/content/m/c/a/mcarper/html/sites/all/modules/imageapi/imageapi_gd.module on line 334.
imageconvolution() expects parameter 1 to be resource, boolean given in /home/content/m/c/a/mcarper/html/sites/all/modules/imageapi/imageapi_gd.module on line 335.
imagedestroy(): supplied argument is not a valid Image resource in /home/content/m/c/a/mcarper/html/sites/all/modules/imageapi/imageapi_gd.module on line 404.
imagedestroy(): supplied argument is not a valid Image resource in /home/content/m/c/a/mcarper/html/sites/all/modules/imageapi/imageapi_gd.module on line 405.
imagecolorallocatealpha(): supplied argument is not a valid Image resource in /home/content/m/c/a/mcarper/html/sites/all/modules/imagecache_actions/textactions.inc on line 455.
imagesavealpha(): supplied argument is not a valid Image resource in /home/content/m/c/a/mcarper/html/sites/all/modules/imagecache_actions/textactions.inc on line 460.
imagealphablending(): supplied argument is not a valid Image resource in /home/content/m/c/a/mcarper/html/sites/all/modules/imagecache_actions/textactions.inc on line 461.
imagettftext() expects parameter 1 to be resource, null given in /home/content/m/c/a/mcarper/html/sites/all/modules/imagecache_actions/textactions.inc on line 463.
action(id:17): textactions_text2canvas failed for sites/default/files/imagecache_sample.png
Reverted back to API 1.3 & Actions 1.2
Comments
Comment #1
sgriffin commentedSame issue as http://drupal.org/node/399836
Comment #2
mikeytown2 commentedThat issue fixed 1.2. I get this in 1.4
Comment #3
dman commentedYeah.
Textactions didn't get the love either. The upgrade only fixed the known problems, I forgot about textactions, possibly others.
To join in, all you need to do is substitute all instances of $image->res with $image->resource .
Will patch and roll next time I need to. Was thinking about bigger things for textactions (merge with signwriter/menuwriter) so didn't want to get into it yet.
Comment #4
mozzie commentedSame problem. Search and replace did not fix.
Reverted back to API 1.3 & Actions 1.2 and working Ok.
I suggest that until this issue is fixed, the recommended versions on the module page(s) should probably revert, too.
Comment #5
dman commentedI cannot revert or un-recommend progress that is being made elsewhere by imageapi.
They are just making changes (in preparation for integration into d7 core) that I didn't know about and haven't kept up with.
imagecache_actions 6--1-4 is jogging behind imageapi, but rolling back from this end will not solve any problems if you have upgraded to imageap1 > 6--1-3. It would be worse.
I've posted a note on the project page that the known stable combination is imagecache_actions:6--1-2 + imageapi:6--1-3
imagecache_actions:6--1-4 is an emergency bugfix trying to keep up with the currently recommended version of imagecache.
Search & replace DID work for me, and is in the dev release, working fine.
I'm holding off on another number release until such time as I figure out how to create a test suite for image generation and ensure that all the promised functions are not broken.
Use the -dev release and let us know what pops out.
Comment #6
mozzie commentedThanks for the explanation and the note on the module page.
One occasionally gets tripped up by the wonderful upgrades report page.
Imagecache action is brilliant! It's a module I rely on quite a lot, so thanks for all your work!
BEFORE search & replace, I got all the current upgrades & updated:
Imageapi 6.x.-1.5
Imagecache 6.x.-2.0 beta8
Imagecache_actions 6.x.-1.4
ImageField 6.x.- 3.0 beta2
Filefield 6.x.-3.0 beta2
Also latest CCK
I got the following on a new image type
* warning: imagecolorallocatealpha(): supplied argument is not a valid Image resource in /var/www/html/sites/default/modules/imagecache_actions/textactions.inc on line 455.
* warning: imagesavealpha(): supplied argument is not a valid Image resource in /var/www/html/sites/default/modules/imagecache_actions/textactions.inc on line 460.
* warning: imagealphablending(): supplied argument is not a valid Image resource in /var/www/html/sites/default/modules/imagecache_actions/textactions.inc on line 461.
* warning: imagettftext() expects parameter 1 to be resource, null given in /var/www/html/sites/default/modules/imagecache_actions/textactions.inc on line 463.
These errors went away AFTER search and replace $image->res with $image->resource (4 instances).
Images check out, too.
I then loaded the Mar-18 dev and had no issues either.
Thanks!
Comment #7
dman commentedhttp://drupal.org/node/413948 committed to current version
Hopefully that's the last of the 1.4 problems
Comment #8
dman commentedby which I mean "fixed"