Darkroom drivers are responsible for resizing, cropping and modifying images using Kirby's thumb API.
You can create your own custom darkroom drivers by extending one of the existing drivers or the base
To modify only parts of an existing driver like the
ImageMagick driver, you can extend that class and selectively overwrite individual methods, e.g. the
convert() method in this example:
You then have to register the new darkroom driver:
Alternatively, you can extend the
Darkroom class to implement a new darkroom driver.
As before, you have to register the new darkroom driver: