webp-converter icon indicating copy to clipboard operation
webp-converter copied to clipboard

Unknown Option '-v'

Open MAlifJian opened this issue 2 years ago • 2 comments

my code:

const webp = require('webp-converter'); webp.grant_permission() const result = webp.webpmux_strip('2521.webp','image_profile.webp','icc',logging="-v"); result.then((res) => { console.log(res); })

error message Error: Command failed: "E:\ALIF\Node\project1\node_modules\webp-converter\bin\libwebp_win64\bin\webpmux.exe" -strip icc "2521.webp" -o "image_profile.webp" "-v" ERROR: Unknown option: '-v'. Exiting due to command-line parsing error.

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Socket.<anonymous> (internal/child_process.js:439:11)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:673:12) {

killed: false, code: 1, signal: null, cmd: '"E:\ALIF\Node\project1\node_modules\webp-converter\bin\libwebp_win64\bin\webpmux.exe" -strip icc "2521.webp" -o "image_profile.webp" "-v"' } Usage: webpmux -get GET_OPTIONS INPUT -o OUTPUT webpmux -set SET_OPTIONS INPUT -o OUTPUT webpmux -duration DURATION_OPTIONS [-duration ...] INPUT -o OUTPUT webpmux -strip STRIP_OPTIONS INPUT -o OUTPUT webpmux -frame FRAME_OPTIONS [-frame...] [-loop LOOP_COUNT] [-bgcolor BACKGROUND_COLOR] -o OUTPUT webpmux -info INPUT webpmux [-h|-help] webpmux -version webpmux argument_file_name

GET_OPTIONS: Extract relevant data: icc get ICC profile exif get EXIF metadata xmp get XMP metadata frame n get nth frame

SET_OPTIONS: Set color profile/metadata: icc file.icc set ICC profile exif file.exif set EXIF metadata xmp file.xmp set XMP metadata where: 'file.icc' contains the ICC profile to be set, 'file.exif' contains the EXIF metadata to be set 'file.xmp' contains the XMP metadata to be set

DURATION_OPTIONS: Set duration of selected frames: duration set duration for each frames duration,frame set duration of a particular frame duration,start,end set duration of frames in the interval [start,end]) where: 'duration' is the duration in milliseconds 'start' is the start frame index 'end' is the inclusive end frame index The special 'end' value '0' means: last frame.

STRIP_OPTIONS: Strip color profile/metadata: icc strip ICC profile exif strip EXIF metadata xmp strip XMP metadata

FRAME_OPTIONS(i): Create animation: file_i +di+[xi+yi[+mi[bi]]] where: 'file_i' is the i'th animation frame (WebP format), 'di' is the pause duration before next frame, 'xi','yi' specify the image offset for this frame, 'mi' is the dispose method for this frame (0 or 1), 'bi' is the blending method for this frame (+b or -b)

LOOP_COUNT: Number of times to repeat the animation. Valid range is 0 to 65535 [Default: 0 (infinite)].

BACKGROUND_COLOR: Background color of the canvas. A,R,G,B where: 'A', 'R', 'G' and 'B' are integers in the range 0 to 255 specifying the Alpha, Red, Green and Blue component values respectively [Default: 255,255,255,255]

INPUT & OUTPUT are in WebP format.

Note: The nature of EXIF, XMP and ICC data is not checked and is assumed to be valid.

Note: if a single file name is passed as the argument, the arguments will be tokenized from this file. The file name must not start with the character '-'.

MAlifJian avatar Oct 03 '21 10:10 MAlifJian

Anyone can help?

MAlifJian avatar Oct 03 '21 11:10 MAlifJian

const result = webp.webpmux_strip('2521.webp','image_profile.webp','icc',"");

demoon84 avatar Aug 14 '22 11:08 demoon84