[PHP编程] TimThumb.php 图片在线处理插件缩略图裁剪插件PHP源码文件

[复制链接]
发表于 2023-2-5 14:49:44
TimThumb是一个非常简单方便的裁剪图片的PHP程序,只要给它设置一些参数,它就可以生成缩略图。许多 WordPress 主题现在使用 TimThumb,一个 PHP 类库,用于缩略图处理。

使用说明:
TimThumb对服务器有要求,需要服务器支持GD库。现在一般主机都支持。然后从TimThumb官网下载脚本上传到服务器。在与TimThumb相同的目录下,新建一个缓存文件夹,并设置缓存文件文件夹为可写。

TimThumb 是一个非常易于使用的 PHP 裁剪脚本。这是裁剪图像的简单示例:

http://你的网站/timthumb.php?src=图片绝对地址&w=裁剪后的宽度&h=裁剪后的高度&q=生成图片的质量&ct=如果是PNG图片,是否是裁剪后透明
从上面的请求例子可以看出,它的参数都是用GET方式提交的。

(TimThumb is a very simple and convenient PHP program for cropping pictures, as long as you set some parameters to it, it can generate thumbnails. Many WordPress themes now use TimThumb, a PHP library for thumbnail handling.

Instructions for use:
TimThumb has requirements on the server, and the server needs to support the GD library. General hosts now support it. Then download the script from the TimThumb official website and upload it to the server. In the same directory as TimThumb, create a new cache folder and set the cache file folder as writable.

TimThumb is a very easy to use PHP cropping script. Here's a simple example of cropping an image:

http://your website/timthumb.php?src=absolute URL of image &w=width after cropping&h=height after cropping&q=quality of generated image&amp ;ct=If it is a PNG image, whether it is transparent after cropping
As can be seen from the above request example, its parameters are all submitted in GET mode.)

[下载]14494470455.rar




上一篇:php中文网的右下角跳转广告代码
下一篇:修复jQuery右侧可隐藏QQ在线客服

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表