Error message when attempting to upload jpg image

Phoca Gallery - image gallery extension
paul4ut
Phoca Member
Phoca Member
Posts: 14
Joined: 22 Jun 2010, 20:43

Error message when attempting to upload jpg image

Post by paul4ut »

HERE IS THE ERROR MESSAGE I GET. HOW CAN I FIX IT?

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Corrupt JPEG data: bad Huffman code in /home/content/p/k/i/pkirtley/html/tol/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/content/p/k/i/pkirtley/html/tol/images/phocagallery/tophills/th146 - original.jpg' is not a valid JPEG file in /home/content/p/k/i/pkirtley/html/tol/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214

Phoca Gallery is creating thumbnail(s) now. Please wait...
Creating of thumbnail th146 - original.jpg ... Error
(tophills/th146 - original.jpg)

(Re)creating of thumbnails is running now, please wait...
Error Message: Error while Creating Thumbnails (ThumbnailExists)
What to do now : » If you have fixed the problem caused by
Image (wrong type or broken image) - remove the image or upload new image via e.g. FTP
GD Library (not correctly working GD library, not working GD functions) - install or reinstall GD library
Permissions (no rights to write files or folders) - change the permissions of image/phocagallery folders on your server,
you can go back to Phoca Gallery. Phoca Gallery will try to create the thumbnails again.
Go to the Phoca Gallery
» You can close this box and solve the problem e.g. in Media Manager or via FTP.
Go to the Phoca Gallery
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error message when attempting to upload jpg image

Post by Jan »

Hi, you got the answer here:

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Corrupt JPEG data: bad Huffman code in /home/content/p/k/i/pkirtley/html/tol/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214

Your GD cannot work with your images, seems like there is some error in image which prevent from successfully thumbnails creating :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply