public function load($src)
    {
        if (empty($src)) {
            return $this;
        }

        if ($this->isImageStringByString($src)) {
            $this->loadImageFromString($src);
        } elseif (filter_var($src, FILTER_VALIDATE_URL)) {
            $this->loadImageFromURL($src);
        } elseif (is_file($src)) {
            $this->loadImageFromFile($src);
        }

        return $this;
    }
public function load($src)
    {
        if (empty($src)) {
            return $this;
        }

        if ($this->isImageStringByString($src)) {
            $this->loadImageFromString($src);
        } elseif (filter_var($src, FILTER_VALIDATE_URL)) {
            $this->loadImageFromURL($src);
        } elseif (is_file($src)) {
            $this->loadImageFromFile($src);
        }

        return $this;
    }
public function load ( $ src ) { if ( empty ( $ src ) ) { return $ this ; } if ( $ this -> isImageStringByString ( $ src ) ) { $ this -> loadImageFromString ( $ src ) ; } elseif ( filter_var ( $ src , FILTER_VALIDATE_URL ) ) { $ this -> loadImageFromURL ( $ src ) ; } elseif ( is_file ( $ src ) ) { $ this -> loadImageFromFile ( $ src ) ; } return $ this ; }
Loads an image from a local path, external url or image string.

@package GImage
@access public
@param string $src Local path, external url or image string.
@return \GImage\Image
Loads an image from a local path external url or image string .