調整影像尺寸

对輸入的影像或媒體資料执行“調整影像尺寸”。

輸入: 圖片檔案(開啟檔案)結果: 圖片預覽與下載

或將圖片拖到這裡

文本輸入

執行後查看結果

範例

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)