thumbs
Set default configuration for thumbs
Presets
You can define option presets for thumbs:
To be used with the $file->thumb()
method. Learn more ›
Srcsets
To be used with the $file->srcset()
method. Learn more ›
Auto-orient
Automatically rotate images based on their exif orientation data.
Quality
The default JPEG compression quality for all thumbnails
Format
Since 3.6.0
You can set a default format for thumbs in your config file to convert all images unless you override the format option in the thumb method.
This is only recommended if you really find yourself converting 90% of your files to that format anyway. Otherwise you will need to override the default quite a lot.
Thumbs driver
Kirby comes with drivers for GD Lib (gd
) and ImageMagick (im
), which can be used out of the box. The default thumbs driver is gd
.
You can also define your own custom thumbs drivers.
Additional options for the ImageMagick driver
bin
If the ImageMagick convert binary is not correctly linked, you can set the absolute path to the binary here.
interlace
JPEGs can be set to interlace mode with this option