示例#1
0
 /**
  * Replaces the current file with a new file.
  *
  * @param string $path	The path to the original file
  */
 public function replace($path)
 {
     parent::replace($path);
     $this->isImage = $this->canImagickParseImage();
 }
示例#2
0
 /**
  * Replaces the current image with a new image.
  * 
  * Automatically converts from one format to PNG,
  * which is the default when dealing with images
  * on the platform.
  * 
  * @param string $path	The path to the original image
  */
 public function replace($path)
 {
     parent::replace($path);
     CachedImage::invalidate($this);
 }