Jump to content

Get image size (width and height) in <img> from predefined sizes in preference/images


buhoplace

Recommended Posts

hi.

 

im trying get the images sizes ( height and width ) for put in :

 

<img itemprop="image" src="{$img_prod_dir}{$lang_iso}-default-large_default.jpg" id="bigpic" alt="" title="{$product->name|escape:'html':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}"/>

 

but i dont wont the largesize of the current product, i want the size that i made in preference/images, like the image

 

 

how can i get this like width="{$largeSize.width}"  but in ---> width="{$home_default || large_default..etc .width}"

 

(i need this because in gtmetrix i see that i need Specify image dimensions because my page is so slow http://gtmetrix.com/reports/buhoplace.com/7KAqFsHb

Thanks

post-977801-0-34981900-1429123506_thumb.png

Edited by buhoplace (see edit history)
Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...