问题
I want to crop images in PHP. Cropping in rectangular shape is all common and easy to do. Can you guide me that how i can crop image in shape other than square like in oval or round shape.


回答1:
You can actually do that with ImageMagick
... See Crop or mask an image into a circle and Crop image into circle and add border for good examples
回答2:
In addition to the previous answer, you can even blur the border with Image Magick's vignette effect, look for vignetteImage method.
来源:https://stackoverflow.com/questions/10071222/php-crop-image-in-shape-other-than-square-like-oval-shape-or-round