I have a Image with the dimensions of 1024x768, when using the crop() method on it with a specified width, height and crop position, but the result is not what I would expect the result to be.
The image is scaled beforehand so that it covers the crop size in both directions, regardless of whether you use “top right” or “top bottom.” With this setting, only the excess area on the left is cropped.
If you need a true pixel-based crop without scaling (e.g., x=100, y=50, width=150, height=150), you must use your own ImageKit plugin.
I honestly find the Kirby v4 focal point feature to be quite misleading then, since you cant really set a image section to display from the get-go, either way thanks for the info.
Doesnt seem to work, but either way, I try to steer clear of installing plugins since you never know how mantained they are.
Im mostly a bit frustrated because I thought the focal point feature was going to help me in my use case, but in order to make use of it I guess ill have to write a bit of logic around it.
I agree with you. Once you find a great plug-in, development suddenly comes to a standstill. Bugs aren’t fixed. And after a few Kirby updates, it no longer works. I also feel better using as few plug-ins as possible. Or programming special solutions myself. That also increases the learning factor.
If you have ImageMagick available (note: NOT the PHP extension imagick), then you could write your own thumb driver with a method to extract a portion of an image (magick -extract)