Exemplo n.º 1
0
 /**
  * Sets a custom directory to use for the ImageMagick temporary files
  * 
  * @param  string $temp_dir  The directory to use for the ImageMagick temp dir
  * @return void
  */
 public static function setImageMagickTempDir($temp_dir)
 {
     $temp_dir = new fDirectory($temp_dir);
     if (!$temp_dir->isWritable()) {
         throw new fEnvironmentException('The ImageMagick temp directory specified, %s, does not appear to be writable', $temp_dir->getPath());
     }
     self::$imagemagick_temp_dir = $temp_dir->getPath();
 }