I’m working on a website based on the kirby theme “One”.
crop() to crop images on the home and projects template, but it’s not working at all.
there is the source code :
<?php if($project->cover()->isNotEmpty()): $thumb = $project->cover()->toFile()->crop(600, 400);?> <img class="img-responsive" src="<?= $thumb->url() ?>" alt="" /> <?php endif ?> spaces
But it’s not working att all. My images are not cropped.
I looked at the media folder and it’s appear there is no image files corresponding.
Maybe I’ve to manage my thumb in the config file, but it’s seems weird that the default config of Kirby doesn’t work.
Thank’s a lot