I just installed this mod on a new Drupal 6 installation. (I have used and loved in on Drupal 5)
I discovered that when uploading an image that was a little over 1MB I would get this error:
* warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Corrupt JPEG data: 51 extraneous bytes before marker 0xd9 in /home/.ioannina/cornwebuser/corneliuscc.org/includes/image.gd.inc on line 190.
* warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/tmp/Services.JPG' is not a valid JPEG file in /home/.ioannina/cornwebuser/corneliuscc.org/includes/image.gd.inc on line 190.
* Unable to create scaled Thumbnail image
* The selected file /home/.ioannina/cornwebuser/corneliuscc.org could not be copied.
I was expecting the module to resize my image to what was allowed in the system. I did have the dimensions removed from the original image setting if that makes a difference. I discovered that it worked correctly if I first resized the image on my local machine to a few 100 KB.
I would call this more of an annoyance for me rather than a show stopper. I will report back if I happen to find out any more.
Comments
Comment #1
emmajane commentedThis is a show stopper. The module should give a useful error message back saying the file is too big.
Comment #2
drewish commentedto get valid error messages you'd need to increase the max post size on your server. if that's too low then PHP won't accept the request and can't create an error message. there's a core issue for it: #30520: file_save_upload() not notifying user when PHP upload limit is exceeded.