调整图像尺寸

对输入的图像或媒体数据执行“调整图像尺寸”。

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

或将图片拖到这里

文本输入

运行后查看结果

案例

Double the dimensions with nearest-neighbour scaling. Each source pixel should become a two-by-two block.

A checkerboard exposes flipped or softened edges

输入

A checkerboard exposes flipped or softened edges — original image

结果

Run to see the image

Expected: 64 × 64 px · 4 pixel checks

宽度
64
高度
64
单位类型
Pixels
保持宽高比
Off
缩放算法
Nearest Neighbour
A portrait frame shows cropping and padding

输入

A portrait frame shows cropping and padding — original image

结果

Run to see the image

Expected: 96 × 160 px · 4 pixel checks

宽度
96
高度
160
单位类型
Pixels
保持宽高比
Off
缩放算法
Nearest Neighbour
An RGB landscape separates the colour channels

输入

An RGB landscape separates the colour channels — original image

结果

Run to see the image

Expected: 192 × 96 px · 4 pixel checks

宽度
192
高度
96
单位类型
Pixels
保持宽高比
Off
缩放算法
Nearest Neighbour
A translucent badge tests alpha preservation

输入

A translucent badge tests alpha preservation — original image

结果

Run to see the image

Expected: 128 × 128 px · 4 pixel checks

宽度
128
高度
128
单位类型
Pixels
保持宽高比
Off
缩放算法
Nearest Neighbour
A pixel-art cross makes rotation visible

输入

A pixel-art cross makes rotation visible — original image

结果

Run to see the image

Expected: 80 × 80 px · 4 pixel checks

宽度
80
高度
80
单位类型
Pixels
保持宽高比
Off
缩放算法
Nearest Neighbour

相关工具

多媒体

操作参考

查看原始技术文档 (English)