I need to resize images to exact input dimensions (centered crop), so, I have add additional functions to Varien_Image, Varien_Image_Adapter_Gd2, Mage_Catalog_Helper_Image, and Mage_Catalog_Model_Product_Image classes.

I can easily rewrite catalog model and helper classes, but I don't know how to rewrite Varien classes. Currently, I make copies to local folder, it's not the best approach.

1 Answer 1


you cannot rewrite Varien classes and any lib classes. It is magento feature.. but you will rewrite Mage class

so you can write Mage_Catalog_Helper_Image, and Mage_Catalog_Model_Product_Image


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.