Jump to content

White rectangle above and below photos


Recommended Posts

As I understand it, Prestashop demands square photos - 600x600px as default - if you're moving from another cart, it seems to require a whole new slew of photos (on our current ZenCart ours are 560x400) so we have the same problem.

 

Moving cart platform means a new photo shoot.

 

PS: I noticed during recent research, that Magento requires the same thing, in all of the themes/templates I considered. So I'm guessing that with the more modern approach to carts, it's pretty much a standard approach?

Edited by Wingz (see edit history)
Link to comment
Share on other sites

As I understand it, Prestashop demands square photos - 600x600px as default

By default dimensions are in a 1:1 ratio but 'demands' is not quite correct. You could change the image sizes to be in any width/height ratio in back office image preferences. If you specify dimensions, say in a 3:2 ratio then images you upload will be fitted into that ratio.

  • Like 1
Link to comment
Share on other sites

Hello,

 

How would I change the colour of the rectangles, via the file /image/inc/php? Better still, can the white boxes be made transparent, I wouldn't have to worry about the colours then.

 

Any other suggestions would be appreciated.

 

Thanks

K

www.rajastones.co.uk

Link to comment
Share on other sites

I have not tried to make it transparent before, you would have to use PNG for that.

 

To change the color, you need to change the following code in a few places in images.inc.php

 

imagecolorallocate($newImage, 255, 255, 255); // newImage can be a different variable as well, so search for 255 in the file

 

You will need to change 255 , 255, 255 to the color code that you which to use (Red, Green, Blue code)

Link to comment
Share on other sites

  • 3 months later...

Hi, does anyone know how to make the white rectangles transparent. What is PNG?

 

All the photos on my site are in different colours.

 

Any help would be appreciated.

 

Raja

 

I have not tried to make it transparent before, you would have to use PNG for that.

 

To change the color, you need to change the following code in a few places in images.inc.php

 

imagecolorallocate($newImage, 255, 255, 255); // newImage can be a different variable as well, so search for 255 in the file

 

You will need to change 255 , 255, 255 to the color code that you which to use (Red, Green, Blue code)

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...