Hi, i have this good?
{assign var=current_image value=getimagesize($link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html')}
{if $current_image[0] eq 125}test{else}<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" {if isset($homeSize)} {/if} height="170" />{/if}