Skip to content

Instantly share code, notes, and snippets.

View jmheretik's full-sized avatar

Jakub Medvecký-Heretik jmheretik

View GitHub Profile
@jmheretik
jmheretik / im-api-thumb-driver.php
Last active September 23, 2023 17:27
Kirby 2's ImageMagick thumb driver implementation rewritten using Imagick API instead of shell exec commands.
/**
* ImageMagick Driver
*/
thumb::$drivers['im-api'] = function($thumb) {
try {
$img = new Imagick($thumb->root());
$img = $img->coalesceImages();
do {