function create($width, $height = null, $color = null) {
        $height = $height ? : $width;
        $this->width = $width;
        $this->height = $height;
        $this->image = imagecreatetruecolor($width, $height);
        $this->original_info = array(
            'width' => $width,
            'height' => $height,
            'orientation' => $this->get_orientation(),
            'exif' => null,
            'format' => 'png',
            'mime' => 'image/png'
        );
        if ($color) {
            $this->fill($color);
        }
        return $this;
    }
function create($width, $height = null, $color = null) {
        $height = $height ? : $width;
        $this->width = $width;
        $this->height = $height;
        $this->image = imagecreatetruecolor($width, $height);
        $this->original_info = array(
            'width' => $width,
            'height' => $height,
            'orientation' => $this->get_orientation(),
            'exif' => null,
            'format' => 'png',
            'mime' => 'image/png'
        );
        if ($color) {
            $this->fill($color);
        }
        return $this;
    }
function create ( $ width , $ height = null , $ color = null ) { $ height = $ height ? : $ width ; $ this -> width = $ width ; $ this -> height = $ height ; $ this -> image = imagecreatetruecolor ( $ width , $ height ) ; $ this -> original_info = array ( 'width' => $ width , 'height' => $ height , 'orientation' => $ this -> get_orientation ( ) , 'exif' => null , 'format' => 'png' , 'mime' => 'image/png' ) ; if ( $ color ) { $ this -> fill ( $ color ) ; } return $ this ; }
Create an image from scratch

@param int           $width  Image width
@param int|null      $height If omitted - assumed equal to $width
@param null|string   $color  Hex color string, array(red, green, blue) or array(red, green, blue, alpha).
Where red, green, blue - integers 0-255, alpha - integer 0-127

@return SimpleImage
Create an image from scratch