When a user tries to upload an image in his profile, they get this error:
warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in C:\xampp\htdocs\maggotcorps\includes\image.gd.inc on line 95.
warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\maggotcorps\includes\image.gd.inc on line 97.
warning: imagealphablending() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\maggotcorps\includes\image.gd.inc on line 98.
warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\maggotcorps\includes\image.gd.inc on line 99.
warning: imagealphablending() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\maggotcorps\includes\image.gd.inc on line 100.
warning: imagesavealpha() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\maggotcorps\includes\image.gd.inc on line 101.
warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\maggotcorps\includes\image.gd.inc on line 121.
warning: imagepng() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\maggotcorps\includes\image.gd.inc on line 215.
warning: imagedestroy() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\maggotcorps\includes\image.gd.inc on line 124.
And then a line in dutch(using the dutch language pack) say the file couldn't be uploaded because the image to to big, max size being 150*150, but the image is only 100*120.
I set max size to 150*150 and 250kb.
Anybody know what the problem is here?
Comments
The problem is in PHP 5.3
The problem is in PHP 5.3 right? I have the same errors when working with some image modules and I'm still thinking what to do with this. Perhaps, we should submit an issue for D6 core.
Now that's looks so:
Drupal 9.19
I have met the same problem,
I have met the same problem, and the php version is 5.2.12
I also have the problem in Drupal 6.22
This just started - really strange:
It was working fine, I updated the core and some modules, and now this.
Same problems here with php
Same problems here with php 5.3