Jump to content

[SOLVED] Increase fullsize product image?


Recommended Posts

Hi,

i just finished installing a new fresh copy of prestashop 1.2.5

I have a couple of questions:

1. Before adding new products to my site i would like to increase the size of the "fullsize" product's image.
I searched the forum and i got this:

Back Office >> Preferences >> Image
and change your size and then regenerate


Let's suppose i do that and then i start adding new products.
The new products' fullsize pictures should be the same size as defined above?

2. What's the recommended size of the fullsize images? (Let's suppose the users have a resolution of minimum 1024 x 768 px.

Thank you!
Link to comment
Share on other sites

Hi.

1. No, the image can be of any size. it will proportionally be resized according to the image sizes specified. Image too small -> whitespace will be added; image too big -> it will be resized to fit dimensions.

2. i would use between 600-800 pixels.
i had a client where i had to tweak the thickbox (thickbox-modified.js) so that the box did not resize to browser window size, so if needed in your case uncomment following line (about line 21):

if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;[spam-filter]else if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;[spam-filter]



If you want to scroll the thickbox when image is too big for screen (it's static now), change this in css/thickbox.css:

    position: static; 



to

    position: absolute;



Good luck.

D.

Link to comment
Share on other sites

Thank you very much for your suggestion!

I already solved my issue (someone helped me to solve it).

I don't know what other modifications my friend did to

thickbox-modified.js

, but i do know for sure that i added these line somewhere inside the file:

var imageWidth = screen.height-250;var imageHeight = screen.height-250;



Now my images look perfect, whatever the scree resolution is.

Thank you again for your help!

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