Guest Posted August 30, 2013 Share Posted August 30, 2013 (edited) Hey guys, So I want my products to fill the div of the product image container. I want to use jQuery to fill it based on if height > width, fill 100% width and vice versa. This is all fine and dandy to do with jQuery, but the problem lies in the fact that Prestashop automatically resizes my images to the exact container of the product image, leaving white space. Is there anyway to force Prestashop to keep the native size? Thanks in advance, eggo Edited August 31, 2013 by Guest (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted August 31, 2013 Share Posted August 31, 2013 Hi, can you link the page you refer to? It might be enough to remove a couple of css rules Link to comment Share on other sites More sharing options...
vekia Posted August 31, 2013 Share Posted August 31, 2013 i just wondering... Prestashop by default changing image sizes, but original image (without modification) is also saved on FTP. so maybe change the .tpl file to use original file, not modified? 1 Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2013 Share Posted August 31, 2013 (edited) Hey Nemo, thanks for the suggestion but I actually think I need to think of a better solution with bootstrap being part of the theme and the resizing issue. Vekia you were right, by removing 'home-default' from the img src the original image was displayed. I think the next best option for my situation would be if possible to specify which image from the reel is shown on product-list.tpl and which is shown on product.tpl based on id=1 or id=2. Is there anyway to select which item from the image number uploaded using this? <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" Thanks in advance Vekia and Nemo EDIT: Realized this is possible via default images and default combinations. My bad! I'll mark this is as solved for now. Edited August 31, 2013 by Guest (see edit history) Link to comment Share on other sites More sharing options...
alizeeee Posted August 26, 2019 Share Posted August 26, 2019 I'm on Prestahop 1.7.5, how can I remove image resizing process or use the native image that has been uploaded? Link to comment Share on other sites More sharing options...
Lukas Truninger Posted August 31, 2019 Share Posted August 31, 2019 Same problem here. I need to insert the original image into my template. Solutions found by searching the internet seam not to work in 1.7.6. Thus, can anyone tell us the path? Also, we upload .png because we need transparency, put PS stores them as .jpg even if it is .png.... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now