ysaroka / autothumb-demo
AutoThumb 的演示项目,PHP 库,用于自动创建缩略图
1.0.0
2016-06-18 08:08 UTC
Requires
- ysaroka/autothumb: ^0.1.0
This package is not auto-updated.
Last update: 2024-09-23 06:41:08 UTC
README
AutoThumb 的演示项目,PHP 库,用于自动创建缩略图。[查看更多](https://github.com/ysaroka/autothumb)。
要求
PHP >= 5.4,以及以下 PHP 图像扩展之一: Imagick 或 GD。
配置了 mod_rewrite 模块的 Apache 服务器。
安装
使用位于 Web 服务器(在演示中为 Apache)根目录的 Composer 包管理器安装演示项目
$ composer create-project ysaroka/autothumb-demo ./
对于 nginx 服务器,只需在站点的配置文件中添加以下规则,在其它正则表达式规则之前
location ~ (.*)-autothumb-([\w\d]+)\.([\w\d]+)$ {
try_files $uri $uri/ /autothumb.process.php?image=$1.$3&type=$2;
}