I’ve made a little site using files as pages, basically as described here How to create virtual pages for each photo in an album?
Trouble is, it seems to mess with a few things. For instance,
->grayscale() does not work with the images.
<?= $kirby->collection("home")->images()->first()->resize(1920, 1200)->greyscale()->url() ?>
Any idea whats going on? The resize works, but not the gray scale conversion.
Edited by @texnixe
- You cannot chain multiple thumb methods. To apply multiple options, use the
thumbmethod with an array of options:
$image->thumb(['width' => 250, 'grayscale' => true])
- The option for black&white images is called