Closed skerbis closed 4 years ago
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
Look: From
I get this:
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.