Lines Matching +full:- +full:- +full:disable +full:- +full:examples
5 The examples/ directory contains tools for encoding (cwebp) and decoding (dwebp)
11 cwebp input.png -q 80 -o output.webp
15 a 0->100 scale (0 being the lowest quality, 100 being the best. Default value is
18 You might want to try the `-lossless` flag too, which will compress the source
19 (in RGBA format) without any loss. The `-q` quality parameter will in this case
23 A longer list of options is available using the `-longhelp` command line flag:
26 > cwebp -longhelp
28 cwebp [-preset <...>] [options] in_file [-o out_file]
31 If input size (-s) for an image is not specified, it is assumed to be a PNG,
37 -h / -help ............. short help
38 -H / -longhelp ......... long help
39 -q <float> ............. quality factor (0:small..100:big), default=75
40 -alpha_q <int> ......... transparency-compression quality (0..100),
42 -preset <string> ....... preset setting, one of:
45 -preset must come first, as it overwrites other parameters
46 -z <int> ............... activates lossless preset with given
49 -m <int> ............... compression method (0=fast, 6=slowest), default=4
50 -segments <int> ........ number of segments to use (1..4), default=4
51 -size <int> ............ target size (in bytes)
52 -psnr <float> .......... target PSNR (in dB. typically: 42)
54 -s <int> <int> ......... input size (width x height) for YUV
55 -sns <int> ............. spatial noise shaping (0:off, 100:max), default=50
56 -f <int> ............... filter strength (0=off..100), default=60
57 -sharpness <int> ....... filter sharpness (0:most .. 7:least sharp), default=0
58 -strong ................ use strong filter instead of simple (default)
59 -nostrong .............. use simple filter instead of strong
60 -sharp_yuv ............. use sharper (and slower) RGB->YUV conversion
61 -partition_limit <int> . limit quality to fit the 512k limit on
63 -pass <int> ............ analysis pass number (1..10)
64 -qrange <min> <max> .... specifies the permissible quality range
66 -crop <x> <y> <w> <h> .. crop picture with the given rectangle
67 -resize <w> <h> ........ resize picture (*after* any cropping)
68 -mt .................... use multi-threading if available
69 -low_memory ............ reduce memory usage (slower encoding)
70 -map <int> ............. print map of extra info
71 -print_psnr ............ prints averaged PSNR distortion
72 -print_ssim ............ prints averaged SSIM distortion
73 -print_lsim ............ prints local-similarity distortion
74 -d <file.pgm> .......... dump the compressed output (PGM file)
75 -alpha_method <int> .... transparency-compression method (0..1), default=1
76 -alpha_filter <string> . predictive filtering for alpha plane,
78 -exact ................. preserve RGB values in transparent area, default=off
79 -blend_alpha <hex> ..... blend colors against background color
83 -noalpha ............... discard any transparency information
84 -lossless .............. encode image losslessly, default=off
85 -near_lossless <int> ... use near-lossless image preprocessing
87 -hint <string> ......... specify image characteristics hint,
90 -metadata <string> ..... comma separated list of metadata to
94 -short ................. condense printed message
95 -quiet ................. don't print anything
96 -version ............... print version number and exit
97 -noasm ................. disable all assembly optimizations
98 -v ..................... verbose, e.g. print encoding/decoding times
99 -progress .............. report encoding progress
105 -jpeg_like ............. roughly match expected JPEG size
106 -af .................... auto-adjust filter strength
107 -pre <int> ............. pre-processing filter
113 -preset -sns -f -m
122 visual optimizations (like: segmentation map re-enforcement). This option
125 Usually, raising the sns value (at fixed -q value) leads to larger files,
128 in-loop processing. The higher the value, the smoother the highly-compressed
130 Typical values are around 20-30. Note that using the option
131 -strong/-nostrong will change the type of filtering. Use "-f 0" to turn
133 * `m` controls the trade-off between encoding speed and quality. Default is 4.
134 You can try -m 5 or -m 6 to explore more (time-consuming) encoding
140 There is a decoding sample in examples/dwebp.c which will take a .webp file and
146 cd examples
147 ./dwebp test.webp -ppm -o test.ppm
151 The full list of options is available using -h:
154 > dwebp -h
155 Usage: dwebp in_file [options] [-o out_file]
164 -pam ......... save the raw RGBA samples as a color PAM
165 -ppm ......... save the raw RGB samples as a color PPM
166 -bmp ......... save as uncompressed BMP format
167 -tiff ........ save as uncompressed TIFF format
168 -pgm ......... save the raw YUV samples as a grayscale PGM
170 -yuv ......... save the raw YUV samples in flat layout
176 -version ..... print version number and exit
177 -nofancy ..... don't use the fancy YUV420 upscaler
178 -nofilter .... disable in-loop filtering
179 -nodither .... disable dithering
180 -dither <d> .. dithering strength (in 0..100)
181 -alpha_dither use alpha-plane dithering if needed
182 -mt .......... use multi-threading
183 -crop <x> <y> <w> <h> ... crop output with the given rectangle
184 -resize <w> <h> ......... resize output (*after* any cropping)
185 -flip ........ flip the output vertically
186 -alpha ....... only save the alpha plane
187 -incremental . use incremental decoding (useful for tests)
188 -h ........... this help message
189 -v ........... verbose (e.g. print encoding/decoding times)
190 -quiet ....... quiet mode, don't print anything
191 -noasm ....... disable all assembly optimizations
211 -version ........... Print version number and exit.
212 -quiet ............. Do not show chunk parsing information.
213 -diag .............. Show parsing error diagnosis.
214 -summary ........... Show chunk stats summary.
215 -bitstream_info .... Parse bitstream header.
220 There's a little self-serve visualization tool called 'vwebp' under the
221 examples/ directory. It uses OpenGL to open a simple drawing window and show a
236 -version ..... print version number and exit
237 -noicc ....... don't use the icc profile if present
238 -nofancy ..... don't use the fancy YUV420 upscaler
239 -nofilter .... disable in-loop filtering
240 -dither <int> dithering strength (0..100), default=50
241 -noalphadither disable alpha plane dithering
242 -usebgcolor .. display background color
243 -mt .......... use multi-threading
244 -info ........ print info
245 -h ........... this help message
254 'd' ................ disable blending & disposal (debug)
264 Linux: `sudo apt-get install freeglut3-dev mesa-common-dev`
274 https://hg.mozilla.org/mozilla-central/file/0e7639e3bdfb/gfx/qcms
284 $ make -f makefile.unix examples/vwebp
285 > nmake /f Makefile.vc CFG=release-static \
286 ../obj/x64/release-static/bin/vwebp.exe
298 img2webp [file_options] [[frame_options] frame_file]... [-o webp_file]
301 File-level options (only used at the start of compression):
304 -min_size ............ minimize size
305 -kmax <int> .......... maximum number of frame between key-frames
307 -kmin <int> .......... minimum number of frame between key-frames
308 (0=disable key-frames altogether)
309 -mixed ............... use mixed lossy/lossless automatic mode
310 -near_lossless <int> . use near-lossless image preprocessing
312 -sharp_yuv ........... use sharper (and slower) RGB->YUV conversion
314 -loop <int> .......... loop count (default: 0, = infinite loop)
315 -v ................... verbose mode
316 -h ................... this help
317 -version ............. print version number and exit
320 Per-frame options (only used for subsequent images input):
323 -d <int> ............. frame duration in ms (default: 100)
324 -lossless ............ use lossless mode (default)
325 -lossy ............... use lossy mode
326 -q <float> ........... quality
327 -m <int> ............. compression method (0=fast, 6=slowest), default=4
328 -exact, -noexact ..... preserve or alter RGB values in transparent area
329 (default: -noexact, may cause artifacts
333 example: `img2webp -loop 2 in0.png -lossy in1.jpg -d 80 in2.tiff -o out.webp`
336 tokenized from this file. The file name must not start with the character '-'.
341 gif2webp utility available under examples/. The files can then be viewed using
347 gif2webp [options] gif_file -o webp_file
353 -h / -help ............. this help
354 -lossy ................. encode image using lossy compression
355 -mixed ................. for each frame in the image, pick lossy
357 -near_lossless <int> ... use near-lossless image preprocessing
359 -sharp_yuv ............. use sharper (and slower) RGB->YUV conversion
361 -q <float> ............. quality factor (0:small..100:big)
362 -m <int> ............... compression method (0=fast, 6=slowest), default=4
363 -min_size .............. minimize output size (default:off)
365 combined with -q, -m, -lossy or -mixed
367 -kmin <int> ............ min distance between key frames
368 -kmax <int> ............ max distance between key frames
369 -f <int> ............... filter strength (0=off..100)
370 -metadata <string> ..... comma separated list of metadata to
373 -loop_compatibility .... use compatibility mode for Chrome
375 -mt .................... use multi-threading if available
377 -version ............... print version number and exit
378 -v ..................... verbose
379 -quiet ................. don't print anything
388 $ make -f makefile.unix examples/gif2webp
394 $ ./configure --enable-everything
400 Test utility anim_diff under examples/ can be used to compare two animated
412 -dump_frames <folder> dump decoded frames in PAM format
413 -min_psnr <float> ... minimum per-frame PSNR
414 -raw_comparison ..... if this flag is not used, RGB is
416 -max_diff <int> ..... maximum allowed difference per channel
419 -h .................. this help
420 -version ............ print version number and exit
429 $ make -f makefile.unix examples/anim_diff
435 $ ./configure --enable-everything
441 The examples/ directory contains a tool (webpmux) for manipulating WebP files.
445 A list of options is available using the -help command line flag:
448 > webpmux -help
449 Usage: webpmux -get GET_OPTIONS INPUT -o OUTPUT
450 webpmux -set SET_OPTIONS INPUT -o OUTPUT
451 webpmux -duration DURATION_OPTIONS [-duration ...]
452 INPUT -o OUTPUT
453 webpmux -strip STRIP_OPTIONS INPUT -o OUTPUT
454 webpmux -frame FRAME_OPTIONS [-frame...] [-loop LOOP_COUNT]
455 [-bgcolor BACKGROUND_COLOR] -o OUTPUT
456 webpmux -info INPUT
457 webpmux [-h|-help]
458 webpmux -version
503 'bi' is the blending method for this frame (+b or -b)
522 tokenized from this file. The file name must not start with the character '-'.