o2system/image
Composer 安装命令:
composer require o2system/image
包简介
O2System Image is a PHP image handling and manipulation library for O2System Framework providing an easier and expressive way to manipulate an image. Allows different PHP Image Processor and Generator to be used.
README 文档
README
O2System Image
O2System Image is a PHP image handling and manipulation library for O2System Framework which provides an easier and expressive way to manipulate an image. It allows different PHP Image Processor and Generator to be used.
Supported PHP Image Processors and Generator Drivers
| Processors | Support | Tested | |
|---|---|---|---|
| GD2 | Yes |
Yes |
http://php.net/image |
| GMagick | Yes |
Yes |
http://php.net/gmagick |
| ImageMagick | Yes |
Yes |
http://php.net/imagemagick |
Composer Installation
The best way to install O2System Image is to use Composer
composer require o2system/image
Usage
use O2System\Image; // Manipulate Image $manipulation = new Image\Manipulation(); $manipulation->setImageFile( 'path/to/images/kawah-putih.jpg' ); $manipulation->scaleImage( 15 ); // Watermark Image $manipulation->watermarkImage( ( new Text() ) ->setPosition( 'MIDDLE_BOTTOM' ) ->setPadding( 10 ) ->signature( 'Braunberrie Timeless Portraiture' ) ->copyright( 'Copyright © ' . date( 'Y' ) . ' Poniman Mulijadi' . PHP_EOL . 'Braunberrie Timeless Portraiture' ) ); // Send to browser $manipulation->displayImage(); // Save Image $manipulation->saveImage( 'path/to/save/images/kawah-putih.jpg' );
Documentation is available on this repository wiki or visit this repository github page.
Ideas and Suggestions
Please kindly mail us at contact@o2system.id
Bugs and Issues
Please kindly submit your issues at Github so we can track all the issues along development and send a pull request to this repository.
System Requirements
- PHP 7.2+
- Composer
- O2System Kernel
- Image Optimizer by Piotr Śliwa
Fonts Credits
- Jellyka Saint Andrew's Queen by Jellyka Neveran used as default signature font.
- Express Way Regular - Truetype Font by Typodermic Fonts used as default copyright font.
Photographs Example Credits
- Kawah Putih by Poniman Mulijadi - Braunberrie Timeless Portraiture
All photographs above is used as examples in the script O2System Framework.
o2system/image 适用场景与选型建议
o2system/image 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.59k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 08 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「php」 「libraries」 「utilities」 「interfaces」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 o2system/image 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 o2system/image 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 o2system/image 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Custom libraries for CakePHP framework
O2System PSR it's build based on PHP Framework Interop Group (PHP-FIG) standards recommendations. This repository contains a collection of PHP interfaces based on the PSR-0 until the PSR-7.
Meta-package of Tatter modules for CodeIgniter 4
PHP Cache Handler Library
PHP Document and Element Library.
统计信息
- 总下载量: 1.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-16