diff --git a/.DS_Store b/.DS_Store index 30f6271..593e6c7 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/index.js b/index.js index cdc3f0c..2c640ab 100644 --- a/index.js +++ b/index.js @@ -113,9 +113,10 @@ function processDirectory(inputDir, outputDir, options, currentDepth = 0) { inputData.length, 0, 0, + 0, + 0, options.quality, // 使用命令行指定的质量 outputSizePtr, - options.alpha ? 1 : 0 ); // 获取输出大小 diff --git a/package.json b/package.json index 21dda70..1ccce67 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "img2webp-cli", - "version": "1.0.1", + "version": "1.0.2", "description": "Convert images to WebP format using WASM in cli", "type": "module", "bin": { "cp2webp": "./bin/cli.js" }, "scripts": { - "test": "node bin/cli.js -i ./test -o ./output", + "test": "node bin/cli.js -i ./test/test1 -o ./output", "goGlobal": "npm link", "testGlobal": "cp2webp -i /Users/kura/Downloads/PC端图标 -o /Users/kura/Downloads/PC端图标/output -r 2" }, diff --git a/wasm/convert_image_to_webp.wasm b/wasm/convert_image_to_webp.wasm index 48e06e8..07cc476 100755 Binary files a/wasm/convert_image_to_webp.wasm and b/wasm/convert_image_to_webp.wasm differ