Jump to content

Warning: Imagecreatefromjpeg() Appears When Import My Products


Recommended Posts

Hi please help me :(

 

I was doing product import by csv, total 2000 products and images are going to import. After click "Import csv file", I wait for the processing time about 5 minutes it goes to a fresh page, which are full of errors, I tried many times, I've set configure the memory limit for 200000M, but still give me errors.

 

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in D:\APMServ5.2.6\www\htdocs\8\classes\ImageManager.php on line 362
Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: 'D:\APMServ5.2.6\www\htdocs\8\img\tmp\ps_5AC5.tmp' is not a valid JPEG file in D:\APMServ5.2.6\www\htdocs\8\classes\ImageManager.php on line 362
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in D:\APMServ5.2.6\www\htdocs\8\classes\ImageManager.php on line 183

... ...

 

 

The version for prestashop is 1.5.2. Please help me in advance..

Link to comment
Share on other sites

classes\ImageManager.php

 

on line 362:

  case IMAGETYPE_JPEG :
  default:
   return imagecreatefromjpeg($filename);
  break;
 }

 

on line 183:

 imagecopyresampled($dest_image, $src_image, (int)(($dst_width - $next_width) / 2), (int)(($dst_height - $next_height) / 2), 0, 0, $next_width, $next_height, $src_width, $src_height);
 return (ImageManager::write($file_type, $dest_image, $dst_file));
}

 

What I m going to do next?

Edited by hobylazy (see edit history)
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...