Exemple #1
0
 /**
  * @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;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 /**
  * 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;
 }