全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

格式转换

最近更新时间:2026-03-31 13:51:03

格式转换

将原图转换为支持的图片格式。

参数说明

操作名称:format

具体参数说明如下表所示。

参数

取值说明

代码样例

jpg

保存为jpg格式。如果原图是webp、bmp、png等矢量图格式,则原图透明部分会填充为白色。

image/format,jpg

webp

保存为webp格式。

image/format,webp

bmp

保存为bmp格式。

image/format,bmp

png

保存为png格式。

image/format,png

gif

保存为gif格式。

image/format,gif

wbmp

保存为wbmp格式。

image/format,wbmp

tiff

保存为tiff格式。

image/format,tiff

bmp

保存为bmp格式。

image/format,bmp

heic

保存为heic格式。

image/format,heic

ppm

保存为ppm格式。

image/format,ppm

mng

保存为 mng格式。

image/format,mng

pcx

保存为pcx格式。

image/format,pcx

astc

保存为astc格式。

image/format,astc

block

astc 图片的块大小,可选值:4x4,5x4,5x5,6x5,6x6,8x5,8x6,10x5,10x6,8x8(默认),10x8,10x10,12x10,12x12

image/format,astc,block_8x8

level

astc 图片的压缩质量水平,取值:0~100,默认 60,更高质量的压缩会增加压缩时间

image/format,astc,level_70

示例

  • 将格式为jpg的图片保存成png的格式。

https://ks3tools.ks3-cn-beijing.ksyuncs.com/images/sample.jpg?x-kss-process=image/format,png

文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈