Библиотека изменения размера изображений GD2 в CodeIgniter

How to resize image in php codeigniter

    // Configuration.
    $config['image_library'] = 'gd2';
    $config['source_image'] = './img/images/uploaded/'.$ imgName.". jpeg";
    $config['new_image'] = './img/images/uploaded/'.$ imgName." _new.jpeg";
    $config['create_thumb'] = TRUE;
    $config['maintain_ratio'] = TRUE;
    $config['width'] = 50;
    $config['height'] = 50;
Ankur