getgrav / getgrav/grav-plugin-admin

[Suggestion] Crop / Resize field

Open
#1,341 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

Hi,

I wanted to share what I thought would make a good feature or a good plugin for admin.
I noticed I rely a lot on the cropZoom media manipulation, in order to have an image fit a box, without some white stripes on the side of the image. Problem is sometimes the main subject of the photo is out of the cropzoomed area.

I would therefore love to have something like an extended filepicker field where one could pick an image, and select the cropzoomed area.

The field definition could accept parameter to force an image ratio and with a preview, like in this example:
![image_resizer](https://user-images.githubusercontent.com/12809352/36310426-4085313e-1328-11e8-9958-19110564b8ec.gif)

Or it could be a "free-form" resizing like in this example:
![image_resizer2](https://user-images.githubusercontent.com/12809352/36310435-4b82f6d4-1328-11e8-816f-57972de62f85.gif)

I did a few try in order to do it myself as a plugin, but I'm afraid it is beyond my php knowledge, so I'm leaving this here in case it has some interest for other plugin developers or for grav team, as I think it would be a very nice feature.

Thanks,
Paul

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.