Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

Direct Resize

Direct Resize Click here to view full size Discuss this Extension Request New Feature Report a Bug

Please note that this extension is provided as is. It is recommended to always backup your installation prior to usage.

Created   alphanono
Last Updated Tue, May 6, 2008
Version 1.5
Stability stable
Locales available in this package N/A
Downloads 701
Community Rating
  • Currently 4.89/5

· 4 votes | 30 reviews

Categories InterfacesThemesCatalog
License Type Open Software License (OSL)
Tags viewresizeimage
Need help? Find a Magento Professional »


Overview

Direct Resize

Resize images proportionally

Give the possibility to resize images without distorted them.

You can specify a Width and a Height value as well as a ratio.

The ratio options are :
0 - none proportionnal. The image will be resized at the Width and Height values.
1 - proportionnal, based on the Width value
2 - proportionnal, based on the Height value
3 - proportionnal for the new image can fit in the Width and the Height values.
4 - proportionnal. The new image will cover an area with the Width and the Height values.

For use, replace the actuals calls :
$this->resize(150,150);
with :
$this->directResize(150,150,3);
where the options are : (width, height, ratio)

---------------------------------------------------------------

To use the module, you must find in your .phtml file the calls of the product images and change them.

For example, in the file design/frontend/default/default/template/catalog/product/list.phtml
at line 95, you can find : "->resize(x,y)" that you must replace with "->directResize(x,y,r)" with r = ratio of your choice.

---------------------------------------------------------------

Don't forget to REMOVE the height and width attributes in the HTML tag.

RSS: New Extensions

Explore Magento Connect

Browse extensions by| View all

Popular Tags| View all Tags

 french   service   downloader   migration   dataflow   import   core   locale   language   german   interface   theme   design   resize   view   image   community   checkout   shipping   payment 

Pro Community Membership

© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien