winter/wn-tinypng-plugin
Composer 安装命令:
composer require winter/wn-tinypng-plugin
包简介
Automatically optimize resized images in Winter CMS with TinyPNG
README 文档
README
Automatically optimizes resized images with TinyPNG.
Configuration
If you are using the .env file for configuration, simply add your TinyPNG API Key to the environment file as TINYPNG_API_KEY. If you are not using the .env file, simply copy plugins/winter/tinypng/config/config.php to config/winter/tinypng/config.php and change the value of apiKey.
That's it! This plugin will then start automatically optimizing images resized with the | resize() filter provided by the Winter CMS core.
NOTE: This plugin will not cause existing resized images to be regenerated. If you would like to regenerate existing images then delete the existing generated images and the resizer will automatically regenerate them for you.
Installation
To install from the Marketplace, click on the "Add to Project" button and then select the project you wish to add it to. Once the plugin has been added to the project, go to the backend and check for updates to pull in the plugin.
To install from the backend, go to Settings -> Updates & Plugins -> Install Plugins and then search for Winter.TinyPNG.
To install from the repository, clone it into plugins/winter/tinypng and then run composer update from your project root in order to pull in the dependencies.
To install it with Composer, run composer require winter/wn-tinypng-plugin from your project root.
winter/wn-tinypng-plugin 适用场景与选型建议
winter/wn-tinypng-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 28.86k 次下载、GitHub Stars 达 9, 最近一次更新时间为 2021 年 03 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「image optimization」 「tinypng」 「tinyjpg」 「winter」 「wintercms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 winter/wn-tinypng-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 winter/wn-tinypng-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 winter/wn-tinypng-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
Image optimization widget for Yii2 Framework with auto WebP/AVIF image format generation from PNG/JPG files.
Optimize your email templates' styles via native Laravel templating mechanism.
A/B Testing of content elements
统计信息
- 总下载量: 28.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 32
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-21