pluf/imgx
Composer 安装命令:
composer require pluf/imgx
包简介
Image compressor and optimizer of pluf
关键字:
README 文档
README
Images present a slightly complicated case when it comes to delivering the perfect variation on each device using a CDN. You need to consider the image format, image dimensions, image compression, aspect ratio, and a lot more, while balancing the image's visual quality. Therefore, we need to have a CDN tuned for image delivery. ImgX is the solution.
ImgX is a regular content delivery network topped with a set of software enhancements to enhance the underlying CDNs functionality for optimizing and transforming images in real-time, thereby making it more suitable for image delivery.
This is the most important thing to understand about all the image CDNs out there. They are not an entirely different content delivery network; they are built on top of existing ones with software enhancements required for image optimization.
The Processing As mentioned earlier, we need to add to the content delivery network the unique functionality required for modifying and optimizing the images. This processing functionality would allow you to resize images, crop them, watermark them, and apply visual effects to them.
This functionality is performed via dedicated "processing servers," which are separate from the servers in the content delivery network. The processing servers are the ones doing the heavy lifting in the image CDN setup. These would always be far fewer in number than the servers in a content delivery network and localized in a few regions.
The Storage
ImgX optimizes and transferes on any image, even the ones that are outside of the image CDN's system.
ImgX comes with a storage or a media library for users to upload and manage images.
These uploaded images can be accessed via the CDN, and can be processed by the processing part of the image CDN.
This media library makes it simple to get started with using the service apart from simplifying image upload and management.
The Processing
ImgX adds to the content delivery network the unique functionality required for modifying and optimizing the images.
This processing functionality allow you to resize images, crop them, watermark them, and apply visual effects to them.
This functionality is performed via dedicated "processing servers," which are separate from the servers in the content delivery network.
The processing servers are the ones doing the heavy lifting in the image CDN setup. These would always be far fewer in number than the servers in a content delivery network and localized in a few regions.
Quick start
To run the latest versio of the ImgX execute the following command:
docker run \
-p "80:80" \
-e "IMGX_ALLOWED_HOST=*" \
viraweb/imgx:latest
And use CURL to check the server:
curl \
--output logo-h100-w100 \
http://localhost/https://viraweb123.ir/api/v2/cms/contents/logo/content?w=100&h=100
Report bugs
To report a bug, make an issue on the github project
pluf/imgx 适用场景与选型建议
pluf/imgx 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14 次下载、GitHub Stars 达 18, 最近一次更新时间为 2020 年 11 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「cache」 「Imagify」 「pluf」 「pluf-module」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pluf/imgx 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pluf/imgx 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pluf/imgx 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A php class allowing WordPress plugin developers to promote Imagify through their own plugin
repository php library
Configuration for Imagify.
Laravel 5 - Repositories to the database layer
Rinvex Repository is a simple, intuitive, and smart implementation of Active Repository with extremely flexible & granular caching system for Laravel, used to abstract the data layer, making applications more flexible to maintain.
Laravel integration for the imagify.io API
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-01