JBZoo\Image\Image::cleanup PHP Method

cleanup() public method

Clean whole image object
public cleanup ( )
    public function cleanup()
    {
        $this->_filename = null;
        $this->_mime = null;
        $this->_width = null;
        $this->_height = null;
        $this->_exif = array();
        $this->_orient = null;
        $this->_quality = self::QUALITY;
        $this->_destroyImage();
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 public function testCleanup()
 {
     $original = Helper::getOrig('butterfly.jpg');
     $img = new Image($original);
     isClass($this->_class, $img->loadFile($original));
     $img->cleanup();
     isCount(1, array_filter($img->getInfo()));
 }