Post by trickyzxr » Thu Mar 19, 2015 3:56 pm

Hi,

I have looked into all the posts regarding this issue but have not been able to resolve.

Checking my logs I see these errors:

imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

imagecopyresampled() expects parameter 2 to be resource, boolean given in /home/*****/public_html/********/system/library/image.php on line 99

Please could someone help in telling me how to go about fixing this issue please?

Thanks.

Tricky

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by OSWorX » Thu Mar 19, 2015 4:01 pm

Simply check all images.
Errors such that are coming because the uploaded images are corrupt (somtimes because of a part transfer).
Check also all images for false titles, avoid spaces, dots, commas, and umlauts.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by trickyzxr » Thu Mar 19, 2015 10:04 pm

Hi thanks for your reply. I know my files are OK as can view edit etc on my pc. The file name is in the format of ab00001 and so on. Would it be a file size issue? I would have thought any problems uploading would show some kind of warning to the admin person no?

Thanks

Tricky

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by OSWorX » Thu Mar 19, 2015 10:47 pm

Premature end of JPEG file
indicates in 99% of all cases corrupt images.
Viewing the original file locally can be fine, but download the image from the server and display (or try it to) that on your local PC.
You will be surprised .. I see that every week several times at different customers.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by trickyzxr » Fri Mar 20, 2015 12:13 am

I am unable to download the image as it is not even getting uploaded. I browse to the file on my local pc then click open and thats it nothing else happens. I FTP'd to my server and the file I was trying to upload was not there. I have set image folders to 777 and my default root to images in the config are:

root config

define('DIR_IMAGE', '/home/******/public_html/******/image/');

admin config

define('DIR_IMAGE', '/home/******/public_html/******/image/');


***** just removing private info.

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by trickyzxr » Fri Mar 20, 2015 12:23 am

OK just done a bit of testing and it was down to the image size. My images were 1600 wide so reduced to 1000 and worked.
So all sorted. Many thanks for you help!

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am
Who is online

Users browsing this forum: No registered users and 11 guests