1000yard Posted December 21, 2008 Share Posted December 21, 2008 Hi,prestashop 1.1.0.5 …… I cant upload any images (logo, language, products) and get always the same failure reply:“1 error image format not recognized, allowed formats are: .gif, .jpg, .png”Have saved my test images in .gif .jpg .png tried different software (photoshop, preview, fireworks)and different sizes AND nothing works !I even can’t download the existing IPod images from the demo site and upload them again !?Checked all php permissions also …Anything else works fine, like editing new categories, products etc.Urgent please help – what could be the problem ??? Link to comment Share on other sites More sharing options...
Olivier W Posted December 21, 2008 Share Posted December 21, 2008 I got the same problem with IE and Firefox and 1.1.0.5 Link to comment Share on other sites More sharing options...
1000yard Posted December 22, 2008 Author Share Posted December 22, 2008 ... using safari doesn't help either - its so frustrating as any thing else works fine :-(((H E L P P L E A S E ! Link to comment Share on other sites More sharing options...
tongfaafaasai Posted December 22, 2008 Share Posted December 22, 2008 which ftp client do you guys use to upload? you don't seem to mention anything about it. all i can see is safari, firefox and ie. i'm sure they are all web browser.how about the permission of /img folder, is it CHMOD777 all the way? Link to comment Share on other sites More sharing options...
1000yard Posted December 22, 2008 Author Share Posted December 22, 2008 Hi,I am talking about uploading ANY .gif .jpg .png images using the admin back office (using any browser),e. g. when creating a new product ...And yes all php permissions checked twiceI really don't know what else to do ?!?Can the file thats responsible for checking uploaded images be corrupt ??- And if which file would that be ??? Link to comment Share on other sites More sharing options...
Olivier W Posted December 22, 2008 Share Posted December 22, 2008 A little correctionOnly images < 300x300 pixels are uploaded Link to comment Share on other sites More sharing options...
1000yard Posted December 22, 2008 Author Share Posted December 22, 2008 I can't upload ANY pictures at all,doesn't matter which size, type (.jpg .gif .png) I always get the same failure message !(see above)Still desperately looking for help, please !!! Link to comment Share on other sites More sharing options...
Olivier W Posted December 22, 2008 Share Posted December 22, 2008 Have you re-install all the 1.1 final another time ? Link to comment Share on other sites More sharing options...
1000yard Posted December 23, 2008 Author Share Posted December 23, 2008 Yes, but did not change the problem :-(((Did it work for you ?!?! Link to comment Share on other sites More sharing options...
ame Posted January 5, 2009 Share Posted January 5, 2009 hi,did you find a solution? i suffer the same problem. i checked all folder permissions, added the php_values (memory limit, max execution time), tried different image formats and sizes and also reinstalled twice the prestashop 1.1.0.5.other than you even turning display_errors on in confic.inc.php i get no error messages...thanks in advanceandreas Link to comment Share on other sites More sharing options...
ame Posted January 5, 2009 Share Posted January 5, 2009 hi,hope this helps you, i found some help in a related thread and posted there my solution:http://www.prestashop.com/forums/viewthread/3992/P30/old_bug_report_forum/image_uplod_problem/regards, andreas Link to comment Share on other sites More sharing options...
1000yard Posted January 6, 2009 Author Share Posted January 6, 2009 Hi Andreas,thanks a lot - I will try this and hope its working !Cheers! Link to comment Share on other sites More sharing options...
1000yard Posted January 14, 2009 Author Share Posted January 14, 2009 Hi,thanks, but for END USERS like me its impossible to fix the problem, (as the hack from andreas doesn't work for me)is there ANY solution or kind of guidance for non programmers / hackers ?!?!Cheers,1000yard who wanted to become an online shop since 12.2008 and still cant upload ANY pictures .... .... .... ... ... :-( Link to comment Share on other sites More sharing options...
hj Posted January 20, 2009 Share Posted January 20, 2009 Ok, here is how its partially working on my web host.I had images from digital camera which were really big in the range of 1.1 MB. So I did some search on the forum and the web to find a solution.After much reading, I downloaded this nice little software called “IrfanView”. Then I downloaded all the plugins for the software.-----After that, I opened my images in IrfanView.-----Then, File -> Save For Web and set your size to something like 500×400 or in that range.-----After that, change the quality to around 30% (according to your preference).-----Finally save the image as ….This will create a new image which will be around 30-50 KB in size. Now you should be able to upload your image without any issues.Hope this helps someone… Link to comment Share on other sites More sharing options...
zOOge Posted February 20, 2009 Share Posted February 20, 2009 I did a little easier fix, that should be inserted into the code I suppose.The problem (for me at least) was that php:s finfo_open function can't find the magic.mime file thathelps out with the file identifying.To the solution,I changed the function in image.inc.php to this: if (function_exists('finfo_open')) { $finfo = @finfo_open(FILEINFO_MIME, "/etc/magic.mime"); $mime_type = @finfo_file($finfo, $file['tmp_name']); @finfo_close($finfo); } I added ,"/etc/magic.mime"You can look for the file in your system with for example the locate-command:locate magic.mimeor with find as a last resort:find / -name magic.mime -print |grep magic.mime// Fredrik Link to comment Share on other sites More sharing options...
juanhidgo Posted May 15, 2009 Share Posted May 15, 2009 I did a little easier fix, that should be inserted into the code I suppose.The problem (for me at least) was that php:s finfo_open function can't find the magic.mime file thathelps out with the file identifying.To the solution,I changed the function in image.inc.php to this: if (function_exists('finfo_open')) { $finfo = @finfo_open(FILEINFO_MIME, "/etc/magic.mime"); $mime_type = @finfo_file($finfo, $file['tmp_name']); @finfo_close($finfo); } I added ,"/etc/magic.mime"You can look for the file in your system with for example the locate-command:locate magic.mimeor with find as a last resort:find / -name magic.mime -print |grep magic.mime// Fredrik Im sorry but i cant find any magic.mime file....any way you can bring it to us with a zip file???Thanks Link to comment Share on other sites More sharing options...
Peter Pastoor Posted June 13, 2014 Share Posted June 13, 2014 Same problem but with 1.6.0.6. I can't find this part in imags.inc.php. if (function_exists('finfo_open')) { $finfo = @finfo_open(FILEINFO_MIME, "/etc/magic.mime"); $mime_type = @finfo_file($finfo, $file['tmp_name']); @finfo_close($finfo); } More ideas? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now