Hacktor Posted September 19, 2010 Share Posted September 19, 2010 Dear members,If have a small product image 150x150px. When I upload the picture, then Prestashop resize it to 300x300px with a white background. How/where can I change the white background into a black background????Plz see my attachment example.... Link to comment Share on other sites More sharing options...
Hacktor Posted September 19, 2010 Author Share Posted September 19, 2010 Sorry, found the solution in images.inc.phpchanged 255,255,255 into 0,0,0Problem solved Link to comment Share on other sites More sharing options...
bluecafe Posted July 16, 2011 Share Posted July 16, 2011 Thank you, just what I needed. Link to comment Share on other sites More sharing options...
wezzy Posted March 12, 2013 Share Posted March 12, 2013 Hi, thanks for the info! in the new versions of PrestaShop you have to change this file: classes/ImageManager.php 1 Link to comment Share on other sites More sharing options...
pildo Posted November 9, 2013 Share Posted November 9, 2013 (edited) its possible use in bacground for product image another img, or set up transparent background? i have on default theme some modification - i use bacground img, which i change via global.css from default theme: body{ font:normal 11px/14px Arial, Verdana, sans-serif; color:#222; background:#fff url('http://mechanicke-vahy.eu/themes/default/img/white_marble.jpg'); background-position: center top; } but its look not to good... take a look on screenshot Edited November 9, 2013 by pildo (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 9, 2013 Share Posted November 9, 2013 i think that your issue is solved here: http://www.prestashop.com/forums/topic/265547-correct-code-css-for-background-image-to-default-site/?do=findComment&comment=1450336 am I right? Link to comment Share on other sites More sharing options...
framarfre Posted November 2, 2014 Share Posted November 2, 2014 Sorry, found the solution in images.inc.php changed 255,255,255 into 0,0,0 Problem solved Hi, thanks for the info! in the new versions of PrestaShop you have to change this file: classes/ImageManager.php Hi, I have tried all the solutions, I've always deleted the cache and tried different browsers but nothing! I use PrestaShop 1.6.0.9 please let somebody is able to make this change or is it really impossible? My site is dark and these white bands look really bad. Thanks Link to comment Share on other sites More sharing options...
dioniz Posted November 2, 2014 Share Posted November 2, 2014 What is your image size setting and what is your original image size 1 Link to comment Share on other sites More sharing options...
framarfre Posted November 3, 2014 Share Posted November 3, 2014 Unfortunately we use different size of images Link to comment Share on other sites More sharing options...
dioniz Posted November 3, 2014 Share Posted November 3, 2014 You need to have same proportions of original image and set image size otherwise prestashop will add white borders to image itself. 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