schmitzal/tinyimg 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

schmitzal/tinyimg

最新稳定版本:1.8.0

Composer 安装命令:

composer require schmitzal/tinyimg

包简介

Image compression for all pngs and jpgs uploaded to the backend (using the tinypng API)

README 文档

README

Image compression for all pngs and jpgs uploaded to the backend (using the tinypng API)

What does it do?

It's a small extension, that hooks (using events) into the TYPO3 file upload and compresses every jpg or png uploaded to the backend using the tinify API: https://tinypng.com/developers

This API can reduce up to 80% of the file size of your images, which will increase your page speed. Without loosing quality.

Installation

composer require schmitzal/tinyimg

Configuration

  1. Create an API key* at https://tinypng.com/developers
  2. Enter the API key* in the extension configuration
  3. Disables compression in extension settings if desired, so you won't lose compressions during development and testing
  4. Have a nice day :)

*Note that the tinify API is limited to 500 compressions per month. If you need more, there is a paid version which can be activated in your dashboard (where you got your API key)

Setup for already existing projects

This extension contains a command which runs through all file storages and compresses 100 images in it on each run. Depending on the size of these images this takes a while.

Make sure to have an updated index. TYPO3 comes with an index updater as a scheduler task called "File Abstraction Layer: Update storage index (scheduler)".

Also be aware that the tinify API is limited to 500 free compressions (see note above). So on huge websites it will be reached quickly.

TypoScript reference

Configuration has been moved to extension settings

Contribution

Bugs and feature requests are welcome. Feel free to create an issue, and I'll have a look at it as soon as possible.

Code improvements are also highly appreciated.

Sponsoring

This extension is powered by OPEN Digitalgruppe GmbH. Most of the time working on this extension is at work, so my thanks go to Open. :)

统计信息

  • 总下载量: 120.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 6
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固