src/classes/CCImage.php
public static function string( $string, $type = null ) 
	{
		$image = imagecreatefromstring( $string );

		if ( $image !== false ) 
		{
			return new static( $image, $type );
		}

		return false;
	}
public static function string( $string, $type = null ) 
	{
		$image = imagecreatefromstring( $string );

		if ( $image !== false ) 
		{
			return new static( $image, $type );
		}

		return false;
	}
public static function string ( $ string , $ type = null ) { $ image = imagecreatefromstring ( $ string ) ; if ( $ image !== false ) { return new static ( $ image , $ type ) ; } return false ; }
Create an image from string

@param string 		$string 			The image data string
@param string 		$type 			jpg|png|gif

@return CCImage|false
Create an image from string