twoh/twoh_tiny_png
Composer 安装命令:
composer require twoh/twoh_tiny_png
包简介
Optimize your TYPO3 Images using the TinyPNG API
README 文档
README
Optimize your TYPO3 images automatically using the TinyPNG API
📋 Requirements
| Requirement | Version |
|---|---|
| PHP | >= 8.2 |
| Composer | >= 2.4 |
| TYPO3 | 13.x |
🔑 Get Your TinyPNG API Key
- Visit TinyPNG Developers
- Enter your Full Name
- Enter your E-Mail
- Receive your API Key
🚀 Installation & Setup
Extension Setup
-
Install the extension via Composer:
composer require twoh/twoh_tiny_png
-
Include the extension in your TypoScript ROOT Template
-
Configure the following TypoScript settings:
- Set your API Key
- Create a Backend folder for TinyPNG records
- Set the PID of your backend folder
- (Optional) Set Width for image resizing on upload (height is calculated automatically)
Scheduler Setup (Bulk Optimization)
- Create a new Scheduler Task
- Select TinyPNG Bulk Compression Command
- Start the cron job
⚠️ Note: The cron may take longer depending on the number of images.
⚙️ Configuration
Ignore Specific Folders
To exclude images from specific folders, add them to your TypoScript Constants (comma-separated):
ignoreImagesByFolderName = {$plugin.tx_twohtinypng.settings.ignoreImagesByFolderName}
File Upload Process
The extension hooks into the File Upload Process and automatically compresses images on upload.
🛠️ Development
Code Quality with PHP CS Fixer
This extension uses PHP CS Fixer for code style enforcement following TYPO3 best practices.
| Command | Description |
|---|---|
composer cs:fix |
Auto-fix code style issues |
composer cs:check |
Check for violations (dry-run) |
👥 Authors
| Name | Role | Contact |
|---|---|---|
| Andreas Reichel | Developer | a.reichel91@outlook.com |
| Igor Smertin | Developer | igor.smertin@web.de |
📚 Documentation
For detailed documentation, visit: TYPO3 Documentation
💖 Support This Project
If you find this extension helpful, please consider supporting its development! Your sponsorship helps maintain and improve this project.
Every contribution, no matter the size, is greatly appreciated and helps ensure the continued development of this extension. Thank you for your support! 🙏
🐛 Issues & Support
Found a bug or have a feature request? Please open an issue on GitHub.
📄 License
This project is licensed under the GPL-2.0-or-later license.
twoh/twoh_tiny_png 适用场景与选型建议
twoh/twoh_tiny_png 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 25 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 06 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「image」 「extension」 「optimization」 「typo3」 「bulk」 「tinypng」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 twoh/twoh_tiny_png 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 twoh/twoh_tiny_png 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 twoh/twoh_tiny_png 相关的其它包
同方向 / 同关键字的高下载量 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.
A custom URL rule class for Yii 2 which allows to create translated URL rules
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.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-06-09