Home » Magento19 March 2010

Magento: Rotate image

Here is a quick tip to rotate image to any degree of your choice in Magento. The rotate function of Varien_Image does the magic :)

Here goes the code:

Code Explanation

In the code above, you can see that I have an image named image.jpg inside media/test/ directory.
Then I have rotated the image to 90 degree.
The new rotated image is saved inside media/test/ directory as new.jpg.

Hope this helps. Thanks.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • Excuse me, I wanted to ask, how to make rotate image in PHP or HTML?
    please reply :(

    –Thank You Very Much–

  • Jeeva

    Where i can apply in magento 1.9?