php缩略图处理,处理缩略图的PHP库

处理缩略图的PHP库

/**

* PhpThumb Library Example File

* This file contains example usage for the PHP Thumb Library

* PHP Version 5 with GD 2.0+

* PhpThumb : PHP Thumb Library 

* Copyright (c) 2009, Ian Selby/Gen X Design

*

* Author(s): Ian Selby 

*

* Licensed under the MIT License

* Redistributions of files must retain the above copyright notice.

*

* @author Ian Selby 

* @copyright Copyright (c) 2009 Gen X Design

* @link http://phpthumb.gxdlabs.com

* @license http://www.opensource.org/licenses/mit-license.php The MIT License

* @version 3.0

* @package PhpThumb

* @subpackage Examples

* @filesource

*/

require_once '../vendor/autoload.php';

$thumb = new PHPThumb\GD(__DIR__ .'/../tests/resources/test.jpg');

$thumb->adaptiveResize(175, 175);

$thumb->show();

在用php开发网站的时候,使用面向对象的方法确实可以提高代码复用率,减少代码冗余。而对初学者更友好的是,PHP开发网站所需要的大部分类库,网上都有十分优秀的类库存在了。这次给大家带来的就是处理缩略图的PHP类库,需要的朋友可以直接拿去使用。

申明:php中文网下载站匠心打造专业的IT资源下载站!一切资源免费,来源网络收集,请自行检测软件的完整性。交流QQ群:916808767

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值