Jump to content

Original images load instead of thumbnails


Recommended Posts

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

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

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

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

×
×
  • Create New...