localgod/karla
Composer 安装命令:
composer require localgod/karla
包简介
ImageMagick wrapper
README 文档
README
Karla is an ImageMagick wrapper written in PHP with support for method chaining.
✨ Now with ImageMagick 7 support! Automatically detects and works with both ImageMagick 6 and 7.
Requirements
- PHP 8.0+ (8.2+ recommended)
- ImageMagick 6.x or 7.x
- PHP extensions: pcre, SPL (default in most distributions)
- shell_exec() must be enabled
Supported Versions
CI matrix tests the following combinations:
| PHP | ImageMagick 6 | ImageMagick 7 |
|---|---|---|
| 8.2 | ✅ Linux | ✅ Linux |
| 8.3 | ✅ Linux | ✅ Linux |
| 8.4 | ✅ Linux/macOS | ✅ Linux/macOS/Windows |
Installation
composer require localgod/karla
Getting Started
use Karla\Karla; $karla = new Karla('/path/to/imagemagick/'); $karla->convert() ->input('photo.jpg') ->resize(800, 600) ->output('photo-resized.jpg') ->execute();
See the documentation for more examples and usage details.
Contributing
Contributions are welcome! See CONTRIBUTE.md for development setup, testing guidelines, and how to submit pull requests.
License
统计信息
- 总下载量: 3.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-07-14