alexeeve Posted May 20, 2013 Share Posted May 20, 2013 Hi, after i change the image width and height on the homepage featured product, change this: <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /> to this: <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($featuredSize)} width="{$featuredSize.width}" height="{$featuredSize.height}"{/if} /> and also added image to preferences-->image: featured_default and set to 150x150 and "generate thumbnails-->product-->featured_default" The images are all damaged/broken/pixelated on the whole website. The url is http://monalisadress.com/ Please Help me fix this..Thanks in advance. Link to comment Share on other sites More sharing options...
BriceVanZeg Posted May 20, 2013 Share Posted May 20, 2013 regenerating image by back office prestashop, is a bull.! I ts true, all images are very bad quality. and your website very slow. May be, you can try to do it again. and if it s not working again, i think you will need to put you image by FTP... before, and if not too.. change one by one.!! I knows, could be long work.. ! but.! This kind of change, need to be at the begining of develloppement.. Anyway, good luck Link to comment Share on other sites More sharing options...
alexeeve Posted May 21, 2013 Author Share Posted May 21, 2013 On 5/20/2013 at 7:55 PM, BriceVanZeg said: regenerating image by back office prestashop, is a bull.! I ts true, all images are very bad quality. and your website very slow. May be, you can try to do it again. and if it s not working again, i think you will need to put you image by FTP... before, and if not too.. change one by one.!! I knows, could be long work.. ! but.! This kind of change, need to be at the begining of develloppement.. Anyway, good luck On 5/20/2013 at 7:55 PM, BriceVanZeg said: regenerating image by back office prestashop, is a bull.! I ts true, all images are very bad quality. and your website very slow. May be, you can try to do it again. and if it s not working again, i think you will need to put you image by FTP... before, and if not too.. change one by one.!! I knows, could be long work.. ! but.! This kind of change, need to be at the begining of develloppement.. Anyway, good luck I found out the the images in /img/p/ like home, large, medium, small, thickbox, etc. are all broken. Is there any file where i can get the original home, large, medium, small, thickbox, etc. images? Link to comment Share on other sites More sharing options...
Bruna BSPCU Posted May 21, 2013 Share Posted May 21, 2013 Try regenerating images item by item like: first categories - the first subitem and click regenerate, then the second subitem, third, etc. Then go to manufacturers and do the same...Do that to all categories and see if it worked. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted May 21, 2013 Share Posted May 21, 2013 On 5/20/2013 at 7:45 PM, alexeeve said: Hi, after i change the image width and height on the homepage featured product, change this: <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /> to this: <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($featuredSize)} width="{$featuredSize.width}" height="{$featuredSize.height}"{/if} /> and also added image to preferences-->image: featured_default and set to 150x150 and "generate thumbnails-->product-->featured_default" The images are all damaged/broken/pixelated on the whole website. The url is http://monalisadress.com/ Please Help me fix this..Thanks in advance. i think you have made a mistake in homefeatured module send a variable from php page which is $homeSize and it get home_default size. if you change that variable from php file that will be ok . other wise you will not got image size correctly . Link to comment Share on other sites More sharing options...
vekia Posted May 21, 2013 Share Posted May 21, 2013 unfrotunately your store is under maintenance mode, so we can check it if it is possible - please turn maitenance mode off regards Link to comment Share on other sites More sharing options...
PascalVG Posted May 21, 2013 Share Posted May 21, 2013 Just to see if the problem is in getting the values of width and height or $featuredsize, try just some fixed values instead of variable values and see if the pics reappear. <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" width="150" height="150" /> my 2 cents, pascal Link to comment Share on other sites More sharing options...
alexeeve Posted June 2, 2013 Author Share Posted June 2, 2013 Hi all, Thanks for your help. I tried it all but no changes so what i did is i download the img folder and check the img/p/ folder.. The images are all broken so i manually edit the sizes with photoshop and resized them like: large, medium, home, etc. and upload them using ftp and all are good but there is still a problem.. When i upload a new product image the result is broken images on all sizes.. Link to comment Share on other sites More sharing options...
alexeeve Posted June 10, 2013 Author Share Posted June 10, 2013 Prestashop Developers.. You can't solve this? Link to comment Share on other sites More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 use the homeSize instead the featuredSize variable here: width="{$featuredSize.width}" height="{$featuredSize.height} because in php you've got: 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), Link to comment Share on other sites More sharing options...
maio Posted August 9, 2013 Share Posted August 9, 2013 Hi Vekia, what's the sense of using height="{$homeSize.height}" width="{$homeSize.width}" ? if I comment it out it works... {*height="{$homeSize.height}" width="{$homeSize.width}"*} what are the counter-effects of such practice? in alternative setting height with .css could be a workaround... Link to comment Share on other sites More sharing options...
vekia Posted August 9, 2013 Share Posted August 9, 2013 yea you've got definitely right, in my opinion there is no sense to use height="{$homeSize.height}" width="{$homeSize.width}" especially when you can do it with css. Link to comment Share on other sites More sharing options...
Recommended Posts