Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When using the module together with imagecache_actions (canvasactions) I get the following error:
TypeError: Argument 2 passed to image_gd_definecanvas() must be of the type array, string given, called in /sites/all/modules/contrib/imageapi_optimize/imageapi_optimize.module on line 205 in image_gd_definecanvas() (Zeile 365 von /sites/all/modules/contrib/imagecache_actions/canvasactions/canvasactions.inc).
I have no clue why that happens...
Comments
Comment #2
AnybodyComment #3
Steven Jones CreditAttribution: Steven Jones at ComputerMinds commentedFrom looking at the code for
canvasactions_definecanvas_image
it always casts to an array rather than a string, so I'm not sure how you'd get this.Comment #4
AnybodyI was not able to solve this problem finally. It only seems to happen in the combination of imagecache_actions + imageapi_optimize when using image_gd_definecanvas.
I have no clue and finally worked around it by an excluding if condition: