本帖最后由 johnnywalkerzhu 于 2012-7-24 18:35 编辑
下载:http://www.phpclasses.org/package/7581-PHP-Apply-different-types-of-effects-to-images.html
演示:http://www.funsail.cn/phpClass/tulip_image/examples/
介绍
郁金香图片处理类
读取GIF\JPEG\PNG格式图片,并在其之上应用各类效果,目前版本能够实现: 添加水印 缩放 裁剪 添加文字 旋转 彩色到灰度颜色 反转 改变亮度 改变对比度 色彩化 高斯模糊 伽玛校准 描绘边缘 浮雕 应用灯光 操作还比较简便: i.e. 浮雕效果: tulipIP::emboss($copy, $offset, $normalization); $copy 为读取的图片;$offset, $normalization 为效果参数; tulipIP::saveImage($dest, $copy, $mime, 'Emboss-filter'); 然后可以直接将处理后的图片保存至指定位置
原文
This class can apply different types of effects to images.It can load an image from a file in GIF, JPEG or PNG format and apply several types of effects. Currently it can:- Add a watermark- Resize- Crop- Add a text label- Rotate- Convert the colors to grey tones- Negate the colors- Change the brightness- Change the contrast- Colorize- Gaussian blur- Gamma correction- Flip the image- Detect edges- Emboss- Apply a lightThe processed image can be saved back to a file in the same formats.
|