This is the error I get everytime I try to upload an image using the flexinode image add-on:
* warning: Division by zero in /home/rdieu/public_html/visonsdieu/includes/image.inc on line 125.
* warning: imagecreatetruecolor(): Invalid image dimensions in /home/rdieu/public_html/visonsdieu/includes/image.inc on line 225.
* warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/rdieu/public_html/visonsdieu/includes/image.inc on line 226.
* warning: imagejpeg(): supplied argument is not a valid Image resource in /home/rdieu/public_html/visonsdieu/includes/image.inc on line 300.
* warning: imagedestroy(): supplied argument is not a valid Image resource in /home/rdieu/public_html/visonsdieu/includes/image.inc on line 229.
Can somebody fix this?
Comments
Comment #1
llizards commentedI had the Same Issue.. Under the edit fields - Make sure you fill out all of the options located there. After I assigned values to those it worked just fine for me.
Comment #2
jeforma commentedWhat do you mean by fill out all the options there? I thought I tried everything to make it work? :(
Comment #3
ardas commentedGuys,
This is an error of image_scale function from image.inc.
The problem occures when you try to pass a zero in width or height parameter.
Here is a new (patched) image_scale function:
Comment #4
Bèr Kessels commentedmoving this to http://drupal.org/node/50272