I want to crop images using the GD, but I want it to crop around a particular shape rather than just a square.
Is this possible?
One way to do it would be to create a mask in the desired square size, containing a alpha channel that is transparent. And then laying it over the original image, that way you would be able to crop a circle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With