public function getHeight() : int
    {
        if (!$this->loadImageInfo()) {
            throw InvalidOperationException::format(
                    'Invalid call to %s: file \'%s\' is not a valid image',
                    __METHOD__,
                    $this->fullPath
            );
        }

        return $this->height;
    }
public function getHeight() : int
    {
        if (!$this->loadImageInfo()) {
            throw InvalidOperationException::format(
                    'Invalid call to %s: file \'%s\' is not a valid image',
                    __METHOD__,
                    $this->fullPath
            );
        }

        return $this->height;
    }
public function getHeight ( ) : int { if ( ! $ this -> loadImageInfo ( ) ) { throw InvalidOperationException :: format ( 'Invalid call to %s: file \'%s\' is not a valid image' , __METHOD__ , $ this -> fullPath ) ; } return $ this -> height ; }
Gets the image height in pixels.

@return int
@throws InvalidOperationException
Gets the image height in pixels .