Framed image

  1. #set ($frameHeight = 154)  
  2. #set ($frameWidth = 120)  
  3. #set($imageRatio = $math.div($ImageImageHeight, $ImageImageWidth))  
  4. #set($frameRatio = $math.div($frameHeight, $frameWidth))  
  5. <img src="/global/images/mac_mag/homeStories_img.gif" style="background: url(/thumbnail?inode=${ImageImageInode}#if($imageRatio > $frameRatio)&w=$frameWidth#else&h=$frameHeight#end) 50% 50% no-repeat;" height="$frameHeight" width="$frameWidth" alt="image alt text" />  
comments powered by Disqus