本文实例为大家分享了php水印和缩略图制作代码,使用面向对象的方法来实现常见图片格式jpg,png,gif的水印和缩略图的制作,供大家参考,具体内容如下
<?php
header('Content-Type:text/html;charset=utf-8');
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file,
本文实例讲述了php生成图片缩略图功能。分享给大家供大家参考,具体如下:
完整代码如下(为方便阅读,代码使用http://tools.jb51.net/code/phpformat进行了格式化处理):
<?php
/*
* Created on 2011-3-18
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Tem