Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top