This commit is contained in:
kura 2025-11-28 13:36:15 +08:00
parent f821697a79
commit b735b82982
2 changed files with 18 additions and 0 deletions

BIN
img.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

18
readme.md Normal file
View File

@ -0,0 +1,18 @@
### 尽量不要修改utils.js内的流程代码
```
_convert_image_to_webp(
inputDataPtr, // 输入数据指针
inputData.length, // 输入数据长度
w, // 输入图片宽度 0表示自动计算
h, // 输入图片高度 0表示自动计算
target_w, // 转换后宽度 0表示原图宽度
target_h, // 转换后高度 0表示原图高度
80, // 压缩质量0-100
outputSizePtr, // 输出数据长度指针
0, //是否保留alpha通道 仅在原始数据时生效
0 //是否原始数据
)
```
效果图
![img.png](img.webp)