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.