public function doFilter($file, $arguments, $typeOptions)
    {
        $Imagine = new Imagine();
        $image = $Imagine->open($file);
        $colour = $image->palette()->color('#' . $arguments['colorize']);
        $image->effects()->colorize($colour);
        $image->save($file);
    }
public function doFilter($file, $arguments, $typeOptions)
    {
        $Imagine = new Imagine();
        $image = $Imagine->open($file);
        $colour = $image->palette()->color('#' . $arguments['colorize']);
        $image->effects()->colorize($colour);
        $image->save($file);
    }
public function doFilter ( $ file , $ arguments , $ typeOptions ) { $ Imagine = new Imagine ( ) ; $ image = $ Imagine -> open ( $ file ) ; $ colour = $ image -> palette ( ) -> color ( '#' . $ arguments [ 'colorize' ] ) ; $ image -> effects ( ) -> colorize ( $ colour ) ; $ image -> save ( $ file ) ; }
Colorize an image

@param string $file
@param array $arguments
@param array $typeOptions

@return void
Colorize an image