@lukasbestle, I agree. This is in no way to be taken as a solution, but only as a workaround for @alexanderhahn. As you said, if there was a solution to the no upscale that would work in every scenario, I trust that you’d have implemented it
That might be a temporary fix but please note that (as I wrote above) not cropping the image at all will lead to layout issues as the images won’t have the expected aspect ratio.
In most cases yes, but not always. I ran into this issue today. I need to crop the image so that it never exceeds a maximum height or width. If it’s too wide it should crop. If it’s too high, it should crop.
So, about the aspect ratio. It will be something else, but when using it as a background for example it’s not as important. We could use the css feature background-size: cover and it will just use the space it needs.
In conclusion, I think there should be an option to crop, without upscale.
Hm, at first sight there doesn’t seem to be an option to prevent upscaling, even though when you do a resize via Kirby’s thumb methods, files are not upscaled. Might be a bug.