PHP GD - Crop Form

I want to crop images using GD, but I want it to crop a specific shape, not just a square.

Is it possible?

+5
source share
1 answer

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.

+2
source

All Articles