-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More fine-grained crop options #10
Comments
Hi @E-VANCE, So if understand correctly you would want to add 10% white space to the vertical crop? In both cases, this is not supported yet unfortunately... [
[0] => 'left',
[1] => 'center'
] In order to get more control over the crop positions, we should switch to the $src_x
$src_y In order to use percentages we should convert this to pixels beforehand. Thanks! |
Hey @Twansparant,
That's the one. Thanks for the explanation & I'll look into it creating a PR! |
I'm not sure this is will be a useful option. Any focal point choice is more useful to be set per image (either manually say using a GUI in the media library, or automatically via some smart crop algorithm). Crop settings in a template to be applied arbitrarily to all images doesn't seem that useful. |
I added support for setting crop positions as percentages: |
Hey there,
I am working on a blog format atm and I am having trouble adjusting the crop / focal point to cater for the different images present... This mainly concerns the vertical crop position, I can choose between top or center here but I would love to have more fine grained control.
Maybe one could use additional percentage values to kinda specify a 'padding'?
Like
breakpoint:width [/factor|height]|c t10
which would translate asso we end up with a cropped image where the vertical crop isn't glued to the top border...?
Any thoughts?
Thanks & regards,
Henning
The text was updated successfully, but these errors were encountered: