Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Kirby Focus (Image Cropping) #642

Open
flokosiol opened this issue Mar 22, 2019 · 0 comments
Open

Kirby Focus (Image Cropping) #642

flokosiol opened this issue Mar 22, 2019 · 0 comments

Comments

@flokosiol
Copy link
Collaborator

Url: https://github.com/flokosiol/kirby-focus/tree/kirby-2

Information

With this plugin for Kirby 2 you can prevent the most important part of an image from being cropped when creating automated thumbs.

The plugin does two things:

  1. It provides a custom field that allows you to set a focus point. The focus point is saved to the meta data file.
  2. It provides a new method focusCrop(), which uses the focus point saved in the meta data file to crop an image in such a way that the focus point is in the center of the cropped image – or (if that's not possible) at least isn't cropped.

Screenshot

preview

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant