📜  codeigniter 中的 gd2 图像大小调整库 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:58.935000             🧑  作者: Mango

代码示例1
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;