Hey,
for my OG Meta-Images I use these snippet:
<?php echo $page->image()->crop(300, 200)->url(); ?>
But with these code will crop images on the center in height. How can I set the crop position to top?
Thanks for your help!
Hey,
for my OG Meta-Images I use these snippet:
<?php echo $page->image()->crop(300, 200)->url(); ?>
But with these code will crop images on the center in height. How can I set the crop position to top?
Thanks for your help!
I hade the same problem so I made a plugin to solve it:
There is also an issue around it:
If you want even more control over the crop position, there is this great plugin by @flokosiol: https://github.com/flokosiol/kirby-focus