// Load the CodeIgniter Image Library
$this->load->library('image_lib');
// Initialize the configuration for the Image Library
$config['image_library'] = 'gd2';
$config['source_image'] = '/path/to/source/image.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;
// Apply the configuration settings
$this->image_lib->initialize($config);
// Resize the image using the specified configuration
$this->image_lib->resize();
// Clear the configuration settings for future use
$this->image_lib->clear();