Dear friends;
I tried to upload a jpg image for a user account but had a problem with it. I got the following warnings though the image was uploaded.
I tried changing settings of file upload options but didn't work out. Has somebody got a clue?
warning: imagecreatetruecolor(): Invalid image dimensions in /home/content/j/o/n/jonathanen/html/cms/includes/image.inc on line 238.
warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/content/j/o/n/jonathanen/html/cms/includes/image.inc on line 264.
warning: imagejpeg(): supplied argument is not a valid Image resource in /home/content/j/o/n/jonathanen/html/cms/includes/image.inc on line 339.
warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/j/o/n/jonathanen/html/cms/includes/image.inc on line 267.
Comments
... is not a valid Image
... is not a valid Image resource ...
Looks like the image is corrupt (network error in upload?) or otherwise unable to be read (is it a standard jpeg on your machine with a correct extension or what?)
Have you tried re-saving it, resampling it locally?
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
the image seems fine!
the image is okay in local machine, I doubt network error too coz it is successfully uploaded.
For some values of
For some values of 'successful' - but maybe not.
I've seen jpegs with the exact right size go up that turned out to have a tiny compression error introduced somewhere. Your browser may even forgive it and try to render the technically broken image. Why not try to replace it? If you want to eliminate the possibility
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards