Skip to content
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

smart crop feature #1002

Open
aaronpk opened this issue Jan 18, 2020 · 1 comment
Open

smart crop feature #1002

aaronpk opened this issue Jan 18, 2020 · 1 comment

Comments

@aaronpk
Copy link

aaronpk commented Jan 18, 2020

This is a great library, but I'm really missing a "smart crop" feature! There's a handful of PHP libraries that do this, but it would be great to be integrated into this code.

Here's some example code for doing just the smart crop: https://github.com/xymak/smartcrop.php

Here's an example of an alternative image processing library that has smart crop built in: https://kosinix.github.io/grafika/smart-crop.html

This is a lighter weight version of doing full on face detection as described in #75 since it is just looking for "interestingness" in the image.

It'd be super great if this were built in!

@olivervogel
Copy link
Member

Sounds like a good idea. I'm just worried that it won't be possible to implement it properly. For example the library mentioned iterates through every single pixel of the image, which can quickly run into the millions and become very resource-intensive.

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

No branches or pull requests

2 participants