Closed MathiasGmeiner closed 8 years ago
As far as I can tell, this is the intended behavior since 2.3.0. It makes the Toolkit more independent from the CMS so that it works for users who don't also use the CMS.
Have you tried using the new Asset
class?
$asset = new Asset('images/' . $image);
$image = $asset->thumb(array('width' => 936, 'height' => 702, 'crop' => true, 'quality' => 40))->url();
If that works without any further changes (as it should), we will instead update the documentation.
I will try new Asset
next week, thanks!
Works great, thanks!
Before 2.3.0 it was possible to generate the thumbs as described in https://getkirby.com/docs/templates/thumbnails#thumbs-for-files-outside-the-content-folder
but after the update to 2.3.0 two things happen:
This is the code I used before 2.3.0:
and after some debugging this is the working code for 2.3.0: