/** * @return Mage_Catalog_Model_Product_Image */ public function saveFile() { parent::saveFile(); /* added for Kraken Image Optimization */ Mage::dispatchEvent('catalog_product_image_save_after', array($this->_eventObject => $this)); return $this; }
public function saveFile() { if (!Mage::helper('magefm_cdn')->isEnabled()) { return parent::saveFile(); } $this->getImageProcessor()->save($this->_baseFile); Mage::helper('magefm_cdn/storage')->saveFileFromPath($this->_baseFile, $this->_newFile); unlink($this->_baseFile); return $this; }
/** * Save processed image file * * @return self */ public function saveFile() { if (!Mage::helper('uaudio_storage')->isEnabled()) { return parent::saveFile(); } $this->getImageProcessor()->save($this->_tmpName); $this->_getStorageModel()->moveFile($this->_tmpName, $this->getNewFile()); $this->_tmpName = null; return $this; }