Home » Archive

Articles tagged with: resize

Magento »

[24 Feb 2010 | 8 Comments | 5,365 views]

In my previous article to resize image in Magento, I had written direct code to resize any image. Here, I will be writing a simple function to resize image proportionally, which can be kept in the helper file of the module (as helper file can be accessed by any template (.phtml) file). Here is the [...]

Magento »

[4 Dec 2009 | One Comment | 1,330 views]

Image functions are defined in catalog/image helper. getOriginalWidth gives width of image. getOriginalHeigh gives height of image. It is not getOriginalHeight().  Spelling mistake from Magento :- )

Magento »

[23 Nov 2009 | 28 Comments | 20,549 views]

You can resize image with fixed height and variable width. Or, you can resize with fixed width and variable height. Following code shows how you do it in Magento. Fixed width of 600px