增加md
This commit is contained in:
parent
f821697a79
commit
b735b82982
18
readme.md
Normal file
18
readme.md
Normal 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 //是否原始数据
|
||||||
|
)
|
||||||
|
```
|
||||||
|
效果图
|
||||||
|

|
||||||
Loading…
Reference in New Issue
Block a user