kabkab
09-06-2011, 04:13 PM
Hi,
In order to be "correct" with the advices of pagespeed which suggest to specify the width and the height of the images I wonder if it possible to do that.
like this
<img alt="the image" src="http://www.mysite.com/img/summary_medium/photos/Phot01.jpg" width="84" height="100">
and in my tpl
<img src="{VIVVO_STATIC_URL}img/summary_medium/{article.get_image}" alt="{image_caption}" width="{the_width}" height="{the_height}"/>
where the values of the_width and the_height could be returned by thumbnail.php
In order to be "correct" with the advices of pagespeed which suggest to specify the width and the height of the images I wonder if it possible to do that.
like this
<img alt="the image" src="http://www.mysite.com/img/summary_medium/photos/Phot01.jpg" width="84" height="100">
and in my tpl
<img src="{VIVVO_STATIC_URL}img/summary_medium/{article.get_image}" alt="{image_caption}" width="{the_width}" height="{the_height}"/>
where the values of the_width and the_height could be returned by thumbnail.php