I want to crop images using GD, but I want it to crop a specific shape, not just a square.
Is it possible?
One way to do this is to create a mask in the desired square size containing an alpha channel that is transparent. And then, laying it on top of the original image, you can crop the circle.