# phpthumb **Repository Path**: dq77/phpthumb ## Basic Information - **Project Name**: phpthumb - **Description**: php缩略图管理程序 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 21 - **Forks**: 7 - **Created**: 2014-09-17 - **Last Updated**: 2021-04-01 ## Categories & Tags **Categories**: image-processing **Tags**: None ## README #phpthumb #主要用于缩略图的生成 #

本版本需要开启apache的重写模块

#有时候我们在前端需要对一张图片 尺寸是80*80的 而上传的图片是 800*800的 在上传的时候没有对图片做处理 那么在这里就可以这么做 #比如图片源地址是 http://phpthumb.oschina.mopaas.com/1.jpg #那么我们只要在图片后面加上这么一个 _s=120-130.jpg (注:我在配置文件里设置了只允许此尺寸的图片) #那么现在图片的地址变成了 http://phpthumb.oschina.mopaas.com/1.jpg_s=120-130.jpg #系统会在第一次访问的时候 生成这张图片