::SvD:: Posted January 25, 2010 Share Posted January 25, 2010 First of all I want to greet all of the users of PrestaShop I have a question.I'm adding new pictures for my items. But when I'm adding picture 400x500 pix it add a white border, so the picture is 500x500 with white border. Is there any way to change default colour from white to black? It would really help me a lot!Picture how it looks on my shop: Link to comment Share on other sites More sharing options...
::SvD:: Posted January 26, 2010 Author Share Posted January 26, 2010 bumpAnyone can help me? Link to comment Share on other sites More sharing options...
techaspects Posted February 12, 2010 Share Posted February 12, 2010 If you find out, please tell us all. I thought it was a css rule but could not find the answer either and the website I am working on looks terrible with a white background. Link to comment Share on other sites More sharing options...
bartman Posted February 16, 2010 Share Posted February 16, 2010 have a look in images.inc.php in the root folder of your prestashop install $white = imagecolorallocate($destImage, 255, 255, 255); try changing to $white = imagecolorallocate($destImage, F, F, F); for black backgroundI think this line appears twice in the file once, for enlarging image and once for cutting image, so you might have to make two alterations Link to comment Share on other sites More sharing options...
techaspects Posted February 16, 2010 Share Posted February 16, 2010 Do I need to recreate the subcategory images?? Mine are still messed up - http://premierlogmfg.com/35-douglas-fir - thanks for your input, we are close to getting this fixed. Thanks for your help and please look to see if it could be anything else. Link to comment Share on other sites More sharing options...
rocky Posted February 16, 2010 Share Posted February 16, 2010 Yes, you need to go to Preferences > Images > Regenerate thumbnails after making this code change to change the background colour of the images. Link to comment Share on other sites More sharing options...
netman Posted February 24, 2010 Share Posted February 24, 2010 Bartman,I have been looking for this for ages. It works like charm.Thanks 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