PHP裁剪图像的形状不是方形,如椭圆形或圆形 [英] PHP crop image in shape other than square like oval shape or round

查看:136
本文介绍了PHP裁剪图像的形状不是方形,如椭圆形或圆形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用PHP裁剪图像。长方形裁剪很常见且容易做到。
你能指导我如何裁剪除椭圆形或圆形之外的方形图像。

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.

推荐答案

你实际上可以使用 ImageMagick ...参见将图像裁剪或遮盖成圆圈将图像裁剪成圆圈并添加边框以获得良好示例

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

这篇关于PHP裁剪图像的形状不是方形,如椭圆形或圆形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆