stolarz Posted September 8, 2014 Share Posted September 8, 2014 Hi, I've got a problem with images in prestashop. Here is the product test, which I added a minute earlier: http://vigdm.com/49-dla-niego When you try 'Inspect element' and check the image, the original size is 2101x2420, but it should be 270x270, because that is the size of thumbnail, which definetely exist. On my local version evertyhing is fine, thumbnails display correctly. Here is the code from product-tpl: <figure class="products-site-image products-site-image-active"> <div> <img class="ajax-image-loader{*-list*}" src="{$img_dir}one-pixel-opacity.png" data-src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html'}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> {if isset($product.new) && $product.new == 1}<img class="new" src="{$img_dir}new_pl.png">{/if} </div> </figure> Link to comment Share on other sites More sharing options...
Kimi Posted September 8, 2014 Share Posted September 8, 2014 what size is set for large_default thumbails? try to regenerate thumbails for large_default thumbails Link to comment Share on other sites More sharing options...
stolarz Posted September 8, 2014 Author Share Posted September 8, 2014 (edited) Size of large_default is 270x270. Yes, I've done that and it didn't fix the problem.[Edit} Now I found, that after regenerating, the large_default thumb was deleted and nothing new was created. So, my new problem is, that prestashop doesn't create thumbnails. Edited September 8, 2014 by stolarz (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted September 8, 2014 Share Posted September 8, 2014 Size of large_default is 270x270. Yes, I've done that and it didn't fix the problem. [Edit} Now I found, that after regenerating, the large_default thumb was deleted and nothing new was created. So, my new problem is, that prestashop doesn't create thumbnails. Did you have a look at the preferences for your images to see which formats are enabled for your products? Link to comment Share on other sites More sharing options...
stolarz Posted September 8, 2014 Author Share Posted September 8, 2014 http://zapodaj.net/9b7aeb6e255fe.png.html Here are my preferences Link to comment Share on other sites More sharing options...
musicmaster Posted September 8, 2014 Share Posted September 8, 2014 Did you try to regenerate the images - deleting the existing formats? Link to comment Share on other sites More sharing options...
stolarz Posted September 9, 2014 Author Share Posted September 9, 2014 Yes, I did that, and after this action, all my thumbs disappeared and nothing new was created, so there is only original image. But when I add a product, thumbnails are created correctly, but still only original image is loaded. Link to comment Share on other sites More sharing options...
musicmaster Posted September 9, 2014 Share Posted September 9, 2014 Your story becomes stranger and stranger: why is there no original image? And why do I still see them? Did you have a look inside the image directories (img\p\1\2\3\4\1234.jpg) and look at what size large-default has there and what datestamp? Link to comment Share on other sites More sharing options...
stolarz Posted September 9, 2014 Author Share Posted September 9, 2014 There is only original image after regenrating thumbnails, all thumbs which existed before are deleted (I don't know why). But when I add new product, the thumnails create correctly, I can see in image directories all thumbnails and correct datestamp. But, still, vigdm.com displays only original image instead of thumbnails. What is strange, regenerate thumbs works fine on my local vigdm.loc, and images displays correctly, though the code is the same. I hope that now I've explained clear. And yes, I know that it is strange. Link to comment Share on other sites More sharing options...
musicmaster Posted September 9, 2014 Share Posted September 9, 2014 There is only original image after regenrating thumbnails, When I look at the url you initially provided (http://vigdm.com/49-dla-niego) I still see "large-default" images that are working. Link to comment Share on other sites More sharing options...
stolarz Posted September 9, 2014 Author Share Posted September 9, 2014 Yes, you're right, but it's not thumbnail large_default, but it's resized original image: http://zapodaj.net/0077b96ca5c2a.png.html It's 800 KB, instead of 12,5KB. On server I've got this files: http://zapodaj.net/e57ce72e2bd57.png.html And here is an image, how it looks like on my local: http://zapodaj.net/ceb28757827a3.png.html It is large-default version of an image 253x253. Link to comment Share on other sites More sharing options...
musicmaster Posted September 9, 2014 Share Posted September 9, 2014 Ok. That makes things clearer: something in the redirect for pretty urls is not working. In that case I would suggest to regenerate the .htaccess file. Link to comment Share on other sites More sharing options...
stolarz Posted September 11, 2014 Author Share Posted September 11, 2014 Hey, regerating .htaccess worked! And I had to regenarate thumbnails couple of times without deleting existing thumbs. Thanks musicmaster for all your help! 1 Link to comment Share on other sites More sharing options...
[email protected] Posted September 16, 2014 Share Posted September 16, 2014 How to remove image in Top Horizonatal Menu? like image name is 3-0_thumb.jpg Link to comment Share on other sites More sharing options...
Recommended Posts