Download the PHP package floriankarsten/kirby3-vipsthumbnail without Composer
On this page you can find all versions of the php package floriankarsten/kirby3-vipsthumbnail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download floriankarsten/kirby3-vipsthumbnail
More information about floriankarsten/kirby3-vipsthumbnail
Files in floriankarsten/kirby3-vipsthumbnail
Package kirby3-vipsthumbnail
Short Description Kirby3 vipsthumbnail thumbnail driver
License MIT
Informations about the package kirby3-vipsthumbnail
Kirby 3 Vips thumbnail
Highly untested use at your own risk! This is very basic Kirby CMS thumbnail driver for libvips. It uses vipsthumbnail that is installed with vips. You need recent libvips installed on your machine but you don't need Vips-php PECL extension installed this plugin doesn't use it.
Why would you want to use this?
Vips is library similar to Imagemagick but uses much less memory and it's faster. This is especially useful if you are dealing with images in 10000x10000+ px range and need to make thumbnails on memory constrained environments (benchmarks).
Why use ImageMagick or GD
This library is aimed only at resizing and cropping. Kirby's other thumb functions like grayscale, blur won't work. Cropping right now uses vips "smartcrop" algorythm which might be advantage but you can't set cropping by hand (could be easily implemented i just don't have use for it).
Installation
Download and copy this repository to
Alternatively, you can install it with composer:
Output options
Vips has some options that i don't understand (like trellis-quant, overshoot-deringing, optimize-scans) but these options are currently implemented:
- default: true - strips metadata from images
- default: false - aplies orientation meta tag if its present (in vips flag --rotate)
- default: false - generate an interlaced (progressive) jpeg
- default: false - There is dumb loging included if you want to debug what is going on and what commands are getting fired
- default: plugindirectory/logs - connected to above - set where to save logs.
You can set these with normal thumbs kirby config. Kirby options like 'quality' and 'bin' apply.