Animated Webp gadget, a simple wrapper to libwebp, provides common batching functionality associated with Animated Webp (stupid method)
> NPM i-g awebp > awebp-h-h --help Dispose [method] [file] [outFile] dispose-method: 0 for NONE or 1 for BACKGROUND -q --quality [quality] [file] [outFile] Specify the compression between 0 and 100 -e --extract-frame [file] [outDir] : compose [frameDir] [outFile] [frameOpt] [loop] [bgColor] compose animated from multiple images Duration -f -- FPS [FPS] [file] [outFile] Modify duration, -l --loop [loop] [file] [outFile] -b --bg-color [bgColor] [file] [outFile] Change webP background color, A,R,G,B Examples: Awebp -d 0./test/test.webp // Dispose method of webp on each frame is 0. Awebp-c frames out. Webp +34+0+0+1+b 1 // Animated webp duration awebp -f 60./test/test.webp // Animated webp duration (60fps ~= 17) awebp-l 3./test/test.webp // Animated webp duration (60fps ~= 17) awebp-l 3 /test/test.webp // Modify the webp background colorCopy the code
Usage scenarios
- For webP overlap problem converted by FFMPEG, dispose method should be set as BACKGROUND
- Animated webp compression
TODO
- Compatible with other operating systems
- Perfecting the info command
- Command Time Statistics
- Background color input is compatible with more formats