-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Cropped image black borders #18
Comments
You mean like if from an 100x100 image I would crop 50, 50, 150, 150? |
i think the best way would be to have it transparent for images that support transparency and a user defined colour for JPEG |
That would be nice |
Because it's possible to set the cropping outside the picture, I get black bars. |
yes, i understand. i'll try and work on it over the weekend |
I‘ll test it |
I did a commit that should fix this issue. It will automatically use a transparent colour for transparent GIF and PNGs and black for non-transparent images. A custom colour can be also specified. I updated the documentation. Please consider this work-in-progress. Thanks! |
Cool 👍 thx. I will test it today |
@stefangabos tested 👍 .. thank you |
thank you for reporting and testing. i've created a release so you can now update via composer |
Is it possible to set the background color if the cropped result is outside the image?
Now it gets a black border.
I only see a definition in the resize method but not at the cropping.
The text was updated successfully, but these errors were encountered: