I've been searching many of site to change background color when cropping image in codeigniter but there's no result.
I have an image when I crop using image_lib GD2 Codeigniter the offset image background color is black here's the pic
how to change this? Here's my code:
$config['image_library'] = 'gd2';
$config['source_image'] = './uploads/thumb/thumb_'.$fileName;
$config['width'] = 200;
$config['height'] = 250;
$config['maintain_ratio'] = FALSE;
$config['x_axis'] = '20';
$config['y_axis'] = '0';
$this->image_lib->clear();
$this->image_lib->initialize($config);
$this->image_lib->crop();
anyone can help me? Sorry my English is bad, thanks for answer.