Jump to content

How to change the blackground colour images


surfershort

Recommended Posts

Hi im building a online store at http://rollingsixes.co.uk/store/ and i would really like to be able to change the default background colour of white on the images.....ive checked everywhere for the solution im guessing its something to do with the image.inc.php file somewhere around here

        /* Allow to keep nice look even if resized */
               $white = imagecolorallocate($destImage, 51, 51, 51);
                   imagefill($destImage, 0, 0, $white); 
                   imagecopyresampled($newImage, $imageGd, 0, 0, 0, 0, $ratioX, $size, $x, $y);
                   imagecolortransparent($newImage, $white);




I just cant figure it out.......any help greatly appreciated

Thanks
Al

Link to comment
Share on other sites

Hi,

In the global.css from your theme you can manage colors and a lot more.
Prestashop/themes/your_theme/css/global.css
"Firebug" will be your best friend to find out what to change!

But in your case, you might only have to modified your picture itself.

Good luck!

Link to comment
Share on other sites

Thanks pasko yes ive tried editing the global CSS line 1009 but it doesnt seem to make any difference.....?

Just cant seem to work out where the 'white' is coming from

Thanks


#center_column div.products_block a.product_image {
background-color: transparent;
display:block;
height:129px;
margin-bottom:2px;
margin-left:2px;
width:129px;

Link to comment
Share on other sites

Thanks again.....but when i try to upload a png image i get this error.....weird...? ive tried PNG24 and PNG8. Transparent GIFs are uploading ok but still display a white background.....

1 error

1. image format not recognized, allowed formats are: .gif, .jpg, .png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...