Jump to content

[SOLVED] Small thumbnail in Products squeezed


Recommended Posts

Well, its .jpg

 

Thumbnail size in 80x80px, I have tried everything, the code in product.tpl is:

 

<!-- thumbnails -->
        <div id="views_block" {if isset($images) && count($images) < 2}class="hidden"{/if}>
        {if isset($images) && count($images) > 3}<span class="view_scroll_spacer"><a id="view_scroll_left" class="hidden" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">{l s='Previous'}</a></span>{/if}
        <div id="thumbs_list">
            <ul id="thumbs_list_frame">
                {if isset($images)}
                    {foreach from=$images item=image name=thumbnails}
                    {assign var=imageIds value="`$product->id`-`$image.id_image`"}
                    <li id="thumbnail_{$image.id_image}">
                        <a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">
                            <img id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" />
                        </a>

 

I have tried to change all medium (size 720px x 220px) and replace to thumb_scene (size 80px x 80px) but still no result!

 

Very, VERY, frustrating....

Link to comment
Share on other sites

I have removed all 'medium' words in the theme's product.tpl and replaced by the word 'thumbnail' as follow (there was only 3):

 

 <img id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" />

 

to:

 

 <img id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'thumbnail')}" alt="{$image.legend|htmlspecialchars}" height="{$thumbnailSize.height}" width="{$thumbnailSize.width}" />

 

Then in back office, preferences - image - I added a new entry call 'thumbnail' with resolution 80px x 80px, and ticked products and categories.

 

I refreshed the page (Enable forced compilation and disable cache) and there they where... SQUARE

 

Thanks for your time!!


BTW, I am using PS 1.4.0.17....

Link to comment
Share on other sites

  • 10 months later...
×
×
  • Create New...