Used for image formatting, create the new image.

$this->image->save($file, $quality = 90);

Save an image file with the default quality setting.

$this->image->resize($width = 0, $height = 0, $default = ”);

Resize an image to certain dimensions.

$this->image->watermark($file, $position = ‘bottomright’);

Add a watermark to an image.

$this->image->crop($top_x, $top_y, $bottom_x, $bottom_y);

Crop an image to certain parameters.

$this->image->rotate($degree, $color = ‘FFFFFF’);

Rotate an image a certain amount of degrees and set a background colour (default white).


Add a filter to an image.

$this->image->text($text, $x = 0, $y = 0, $size = 5, $color = ‘000000’);

Add text to an image and position it. Last argument for is font colour.

$this->image->merge($file, $x = 0, $y = 0, $opacity = 100);

Merge an image.


Convert the colour type to RGB output with this function.

Last update: Fri, 23 Aug 2019 23:11:14