Hi all,
I want to change the background color of my images in product page. I have many different images sizes and I have set the image size to 300x300 pixels but a lot of the images have an overflow of background behind them. I want to change the background to suit the new background color for my site which is #99CCFF. I have tried changing the css (a. image {background:#99CCFF;}) but that doesn't work. I have also tried to change the image.php file in system>library but when I change it to the dex code of #99CCFF I get an error and the page wont display. I have also tried to change it to the rgb code of 153,204,155 however in the origal php file there are 4 sets of digits instead of the 3 I thought there were in rgb code and changing to only the 3 sets of digits gives me another error.
Can anyone help with this please?
Thanks
Edit system/library/image.php
Find:
Change into:
Find:
Change into:
Delete all cached image files in image/cache
Find:
Code: Select all
$background = imagecolorallocatealpha($this->image, 255, 255, 255, 127);
Code: Select all
$background = imagecolorallocatealpha($this->image, 153, 204, 255, 127);
Code: Select all
$background = imagecolorallocate($this->image, 255, 255, 255);
Code: Select all
$background = imagecolorallocate($this->image, 153, 204, 255);
Who is online
Users browsing this forum: No registered users and 14 guests