I have implemented webp but now there is “crop-1” in the url. How can I get rid of the “-1”? I have already deleted my cache and media folder.
It used to be:
and now its like this:
Does anyone how I can remove the
-1 from the url?
I wonder where the
-1 is coming from? Can’t reproduce this in a Starterkit. Are you using Kirby 3.6?
When I crop with webp format:
<?= ($cover = $project->cover()) ? $cover->thumb(['width' => 400, 'height' => 500, 'crop' => 'center', 'format' => 'webp']) : null ?>
I get for example
Yes! I am using Kirby 22.214.171.124.
It’s very strange but
-1 remains in the name.
Edit: Seems to happen when you set
true, vs setting
Yes that’s the problem. Strange!
From which version did you update?
I’d suggest that if you use
'crop' => true, replace it with
'crop' => 'center' which is the default value for crop.
Thank you @texnixe! This makes it more clear to me, it has indeed solved it