Home » Magento7 December 2009

Magento: Get width height of image using Varien_Image class

In my previous post on getting height and width of image , I have written focusing on product image,  i.e. getting height and width of product image.

In this case, I will be showing you how to get height and width of any image in Magento. The image need not to be product image.

You can get width height of image using Varien_Image (lib/Varien/Image.php) class object.

In this example, I assume that your image is present inside media directory of your magento installation.

Hope it helps. Thanks.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • mohan kashelkar

    how to access varien image class in magento for catalog product widget?