Jump to content

[SOLVED] thickbox with right size of original product photo


Recommended Posts

Hi,
I have a question:
the background of the miniatures, the various images that large, small etc.. (done in automatic by prestashop) have as the background color white is another color can change it and how?

I do it with this way: creating a square background, color the background and then paste the picture, but then all the photos including the one my size would square with a colored background and the magnification of the image (Thickbox) I could not do the trick (exchange Thickbox with that which I have done my upload).

Summary:
What I would load the image in the process of adding product with a size varying from product to product, at this stage, once learned how to change the background color to the thumbnail example. white to pink, will create thumbnails of a square, as usual, with pink background and then viewed in the FO section product when I press on the picture, it obviously opens up the original picture without any background color and size as those of photos.

Everything lies in that GetImageLink that eg. inserting a null value (in product.tpl), I return the URL of my image that I uploaded, making the replacement of the photos (between original to thickbox), Thickbox works perfectly with original photos, but to have it done automatically to any picture you need to edit Link.php

Values that can take the variable $type as well as small, large etc..?

Can someone help me change the fuction GetImageLink in classes/Link.php and edit product.tpl around 117 row?

Thanks

Link to comment
Share on other sites

Hi
I have found a solution to change color of the miniatures background :
in image.inc.php
there is a variable $white which assigns colors in decimal code, those changes and regenerate the images take the color you want.

the other problem remains

If you have some time can you look at my topics?
http://www.prestashop.com/forums/viewthread/52722/integration/remplacer_le_link_a_thickbox_avec_la_photo_qui_ete_transferee_editer_getimagelink/

or

http://www.prestashop.com/forums/viewthread/19488/P15/programmazione_moduli_design_e_temi/problemi_con_le_immagini

Bye

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