-
Notifications
You must be signed in to change notification settings - Fork 99
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
Support for imagecropauto #158
Comments
#158 Add support for PHP-GD function [ImageCropAuto](https://www.php.net/manual/en/function.imagecropauto.php)
I have added a new parameter "ica" in 1766fa7 |
Thank you! Is it possible to implement my own "pre-filters" without patching core of the library? |
I'm not opposed to that, I'm just trying to think of a good way to make that work. If you have any implementation suggestions I'm interested to hear them. I assume you'd be working in object mode rather than URL parameters? One possibility to consider with the existing code is to use If you have suggestions for how to implement the possibility of passing in arbitrary pre-filtering code without causing security concerns I'm interested in your suggested approach. |
I can preprocess image myself, but it causes a lot of boilerplate code, like choosing function to read image from jpg/png/gif but the best code is not written code )) In this particular case I'd suggest to use a similar to fltr[] approach, to allow to pass multiple cropping attempts. Now it's not possible to crop transparent border and white borders with the same code. But thumbnails are generated from many images, and it's not possible to know which cropping algo would be the best. But in general I'd like to use some prefilters - like
and it could be the same with "postfilters", also you could recognise special keywords and implement built-in filters into pipeline. But it can turn out to complete different library )) |
Would you be interested in writing said |
Are this repo elligible for hacktoberfest? |
How can i use imagecropauto function for removing white/black/transparent borders before thumbnail creation.
I can't see any "prefilter" interfaces which I could use.
The text was updated successfully, but these errors were encountered: