裁剪图像

对输入的图像或媒体数据执行“裁剪图像”。

输入: 图片文件(打开文件)结果: 图片预览与下载

或将图片拖到这里

文本输入

运行后查看结果

更多选项

案例

Take the top-left 16 by 16 pixels; cropping keeps original pixels rather than resizing the whole image.

A checkerboard exposes flipped or softened edges

输入

A checkerboard exposes flipped or softened edges — original image

结果

Run to see the image

Expected: 16 × 16 px · 4 pixel checks

X 坐标
0
Y 坐标
0
宽度
16
高度
16
自动裁剪
Off
自动裁剪容差(%)
0.02
仅自动裁剪帧
On
对称自动裁剪
Off
自动裁剪保留边框(像素)
0
A portrait frame shows cropping and padding

输入

A portrait frame shows cropping and padding — original image

结果

Run to see the image

Expected: 16 × 16 px · 4 pixel checks

X 坐标
0
Y 坐标
0
宽度
16
高度
16
自动裁剪
Off
自动裁剪容差(%)
0.02
仅自动裁剪帧
On
对称自动裁剪
Off
自动裁剪保留边框(像素)
0
An RGB landscape separates the colour channels

输入

An RGB landscape separates the colour channels — original image

结果

Run to see the image

Expected: 16 × 16 px · 4 pixel checks

X 坐标
0
Y 坐标
0
宽度
16
高度
16
自动裁剪
Off
自动裁剪容差(%)
0.02
仅自动裁剪帧
On
对称自动裁剪
Off
自动裁剪保留边框(像素)
0
A translucent badge tests alpha preservation

输入

A translucent badge tests alpha preservation — original image

结果

Run to see the image

Expected: 16 × 16 px · 4 pixel checks

X 坐标
0
Y 坐标
0
宽度
16
高度
16
自动裁剪
Off
自动裁剪容差(%)
0.02
仅自动裁剪帧
On
对称自动裁剪
Off
自动裁剪保留边框(像素)
0
A pixel-art cross makes rotation visible

输入

A pixel-art cross makes rotation visible — original image

结果

Run to see the image

Expected: 16 × 16 px · 4 pixel checks

X 坐标
0
Y 坐标
0
宽度
16
高度
16
自动裁剪
Off
自动裁剪容差(%)
0.02
仅自动裁剪帧
On
对称自动裁剪
Off
自动裁剪保留边框(像素)
0

相关工具

多媒体

操作参考

查看原始技术文档 (English)