benjjj6 Posted July 15, 2008 Share Posted July 15, 2008 HiI've just uploaded a picture as the Homepage Logo on my offline test server, however Presta Shop seems to have slightly changed the image colours.Why could this be?ThanksBen :bug: Link to comment Share on other sites More sharing options...
ejectcore Posted July 15, 2008 Share Posted July 15, 2008 Is this by any chance a "GIF" or "PNG" :question: Link to comment Share on other sites More sharing options...
benjjj6 Posted July 15, 2008 Author Share Posted July 15, 2008 HiIt is a JPEG, I have tried uploading the image as both a .gif and a .jpeg and it still changes the colours slightly. Link to comment Share on other sites More sharing options...
ejectcore Posted July 15, 2008 Share Posted July 15, 2008 Please show me the difference before then after upload Link to comment Share on other sites More sharing options...
benjjj6 Posted July 15, 2008 Author Share Posted July 15, 2008 HiIve attatched the two images. Banner1 is the original, Banner2 is how it looks after being uploaded as the homepage logo.Although the difference is subtle, I think it is most obvious on the text "Who like to rock the party?" and was just wondering why this was happening.Thanks for your help Link to comment Share on other sites More sharing options...
benjjj6 Posted July 15, 2008 Author Share Posted July 15, 2008 Okay... after uploading the images they both look the same. lol.I took a look at my photoshop file and realised that the pink I was using for the text was not a "Web Safe" colour. Maybe this is why it is changing? Link to comment Share on other sites More sharing options...
Stu583 Posted July 15, 2008 Share Posted July 15, 2008 Well cool banner anyway. Link to comment Share on other sites More sharing options...
ejectcore Posted July 15, 2008 Share Posted July 15, 2008 Oh your talking about image qualitythis can be changed here - admin/functions.php line 51imagejpeg($newImage, _PS_TMP_IMG_DIR_.$cacheImage, 86); /// image qualityjust change the 86 to higher value ;-) also the following may work but is untested - within modules/editorial/editorial.php line 99Configuration::set('PS_IMAGE_GENERATION_METHOD', 1); /// just change value to 0 Link to comment Share on other sites More sharing options...
benjjj6 Posted July 15, 2008 Author Share Posted July 15, 2008 Thanks!I changed 86 to 100 and hope that will solve the problem. Link to comment Share on other sites More sharing options...
ejectcore Posted July 15, 2008 Share Posted July 15, 2008 be careful using such a high value as it will effect the product uploading as well :roll: Link to comment Share on other sites More sharing options...
benjjj6 Posted July 15, 2008 Author Share Posted July 15, 2008 Could you give me some more information on what the value actually means? Why is it set to 86 by default? Would changing "PS_IMAGE_GENERATION_METHOD’, 1" to "0" be a better solution?p.s. Thanks for the comment "JustSweetFeet" Link to comment Share on other sites More sharing options...
ejectcore Posted July 15, 2008 Share Posted July 15, 2008 try the changing to 0 then re-upload if this does not work use the other method ;-) 85 is infact a web standard 90 is high quality 100 should not really be used for web! Link to comment Share on other sites More sharing options...
benjjj6 Posted July 15, 2008 Author Share Posted July 15, 2008 Changing it to 0 worked and solved the problem. Thanks for answering all these questions on the forum I see you in almost every other thread! ha ha Link to comment Share on other sites More sharing options...
ejectcore Posted July 15, 2008 Share Posted July 15, 2008 If you bank with HSBCcheck out my latest module ;-Phttp://www.prestashop.com/forums/viewthread/3469/Please change your subject in your first post to say [sOLVED] Link to comment Share on other sites More sharing options...
Recommended Posts