tags:

views:

371

answers:

1

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?

+2  A: 

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.

D_V