swiftchase / swift-imagine
将 Imagine 图像处理库作为 Zend Framework 2 服务提供,并增加了更多元数据读取器
0.1.0
2015-04-05 23:32 UTC
Requires
- php: >=5.5
- imagine/imagine: ~0.6.0
This package is not auto-updated.
Last update: 2024-09-28 17:49:11 UTC
README
用途
SwiftImagine 使 Imagine 库作为 ZF2 应用程序内的服务提供,自动选择“最佳可能”的适配器(从 Gmagick、Imagick 或 GD 中选择)。
安装
将库添加到 composer
$ composer require "swiftchase/swift-imagine:*"
然后,在您的 config/application.config.php
中添加 SwiftImagine
模块。之后,将通过服务管理器提供 SwiftImagine\Service\Imagine
服务。
附加元数据读取器
Imagine 库自带一个 ExifMetadataReader
。
SwiftImagine 模块增加了额外的读取器
ChainedMetadataReader
- 从多个元数据读取器聚合信息GpsMetadataReader
- 从 EXIF 数据中提取 GPS 位置和海拔高度IptcMetadataReader
- 提取 IPTC 照片元数据。
限制/待办事项
目前无法配置首选图形库适配器,无法更改默认启用的元数据读取器,或者轻松地提供多个配置不同的 imagine 服务。
还有关于流的问题,尚未深入研究。