lib/ImageResize.php
public static function createFromString($image_data)
    {
        if (empty($image_data) || $image_data === null) {
            throw new ImageResizeException('image_data must not be empty');
        }
        $resize = new self('data://application/octet-stream;base64,' . base64_encode($image_data));
        return $resize;
    }
public static function createFromString($image_data)
    {
        if (empty($image_data) || $image_data === null) {
            throw new ImageResizeException('image_data must not be empty');
        }
        $resize = new self('data://application/octet-stream;base64,' . base64_encode($image_data));
        return $resize;
    }
public static function createFromString ( $ image_data ) { if ( empty ( $ image_data ) || $ image_data === null ) { throw new ImageResizeException ( 'image_data must not be empty' ) ; } $ resize = new self ( 'data://application/octet-stream;base64,' . base64_encode ( $ image_data ) ) ; return $ resize ; }
Create instance from a strng

@param string $image_data
@return ImageResize
@throws ImageResizeException
Create instance from a strng