Kirby Crop Top - Crop thumbnails with top position


Version 0.1

Crop thumbs with top position.

This is a really primitive plugin. It’s only ment as a temporary fix for this issue:


I will not even add installation instructions for it. If you can’t install it, wait for Kirby to catch up.


$thumb_url = $page->cropTop('image.png', array('width' => 380, 'height' => 190));
<img src="<?php echo $thumb_url; ?>">

It takes a filename (not an image object) and an array with width and height. The output is a thumbnail url. It saves it in thumbs/crop-top/**/*.

Be aware! This object does not work exactly like the native thumb object. It only works in this specific case.

1 Like