https://github.com/christophlehmann/vips
TYPO3 Extension for faster thumbnail generation with PHP Module vips (libvips)
https://github.com/christophlehmann/vips
image-processing libvips performance
Last synced: 5 months ago
JSON representation
TYPO3 Extension for faster thumbnail generation with PHP Module vips (libvips)
- Host: GitHub
- URL: https://github.com/christophlehmann/vips
- Owner: christophlehmann
- Archived: true
- Created: 2019-12-21T00:51:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-23T07:31:55.000Z (about 2 years ago)
- Last Synced: 2025-11-27T14:48:45.617Z (7 months ago)
- Topics: image-processing, libvips, performance
- Language: PHP
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# TYPO3 Extension: Vips
Faster and less memory hungry thumbnail generation for TYPO3 with [libvips](https://libvips.github.io/libvips/)
Here is a speed and memory comparison: https://github.com/libvips/libvips/wiki/Speed-and-memory-use
## Prerequisites
The [PHP module vips](https://github.com/libvips/php-vips-ext) with version 8.8+ needs to be present on the server. The versions 8.5+ may work, but are not tested.
@jcupitt provides some [Dockerfiles](https://github.com/jcupitt/docker-builds) which may help you to get a newer version.
The module can be installed with `pecl install vips`
## Installation
`composer require christophlehmann/vips`
## Configuration
By default the file types `jpg,jpeg,png,webp,pdf` are handled. Other types are handled through TYPO3. This list can be
configured in EM. If you have problems with certain file types just deactivate them.
## Implemented functionality
* [x] Crop images
* [x] Scale images
* [ ] Mask images (currently done with TYPO3's default image processor)
* [ ] Handle upscaling
* [x] Handle cropping by parameters like `height=100c`
## Debugging
Add the logging configuration to `typo3conf/AdditionalConfiguration.php`
```php
[
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFileInfix' => 'vips'
]
]
];
```
Then create a thumbnail and check the log `typo3temp/var/log/typo3_vips_ea8bea6399.log`
## Contribution
Contributions are very welcome! The extension is managed at [Github](https://github.com/christophlehmann/vips)