CodeIgniter图像处理类代码
-
原创
-
2016-07-25 08:54:57
712浏览
- define("BASEPATH", dirname(__FILE__).'//m.sbmmt.com/m/');
-
- function &get_instance(&$class_object)
- {
- return $class_object;
- }
-
- function log_message(){}
- // 图像处理类位置 CodeIgniter: ./system/libraries/Image_lib.php
- include("Image_lib.php");
-
- $config['image_library'] = 'gd2';
- $config['source_image'] = "/home/qiufeng/work/test/bdlogo.gif";
- $config['create_thumb'] = TRUE;
- $config['dynamic_output'] = TRUE;
- $config['maintain_ratio'] = TRUE;
- $config['width'] = 500;
- $config['height'] = 500;
-
- $image = new CI_Image_lib($config);
- $image->resize();
复制代码 |
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。