Lines Matching +full:- +full:- +full:preset +full:- +full:default
30 --------------
34 nmake /f Makefile.vc CFG=release-static RTLIBCFG=static OBJDIR=output
36 the directory output\release-static\(x64|x86)\bin will contain the tools
37 cwebp.exe and dwebp.exe. The directory output\release-static\(x64|x86)\lib will
43 -------------------------------
47 make -f makefile.unix
50 with the static library src/libwebp.a. No system-wide installation
56 ---------------------
59 On a Debian-like system the following should install everything you need for a
61 $ sudo apt-get install gcc make autoconf automake libtool
81 Note: A decode-only library, libwebpdecoder, is available using the
82 '--enable-libwebpdecoder' flag. The encode library is built separately and can
84 Makefile.am configure files (see comments there). See './configure --help' for
88 ------------------------
90 https://community.imgtec.com/developers/mips/tools/codescape-mips-sdk/available-releases/
95 # 32-bit build for mips32r5 (p5600)
96 HOST=mips-mti-linux-gnu
97 MIPS_CFLAGS="-O3 -mips32r5 -mabi=32 -mtune=p5600 -mmsa -mfp64 \
98 -msched-weight -mload-store-pairs -fPIE"
99 MIPS_LDFLAGS="-mips32r5 -mabi=32 -mmsa -mfp64 -pie"
101 # 64-bit build for mips64r6 (i6400)
102 HOST=mips-img-linux-gnu
103 MIPS_CFLAGS="-O3 -mips64r6 -mabi=64 -mtune=i6400 -mmsa -mfp64 \
104 -msched-weight -mload-store-pairs -fPIE"
105 MIPS_LDFLAGS="-mips64r6 -mabi=64 -mmsa -mfp64 -pie"
107 ./configure --host=${HOST} --build=`config.guess` \
108 CC="${HOST}-gcc -EL" \
115 ------
121 On a Debian-like system the following should install everything you need for a
123 $ sudo apt-get install build-essential cmake
135 cmake -DWEBP_BUILD_CWEBP=ON -DWEBP_BUILD_DWEBP=ON ../
137 or through your favorite interface (like ccmake or cmake-qt-gui).
139 Use option -DWEBP_UNICODE=ON for Unicode support on Windows (with chcp 65001).
148 -------
154 On a Debian-like system the following should install everything you need for a
156 $ sudo apt-get install build-essential gradle
164 --------------
166 To generate language bindings from swig/libwebp.swig at least swig-1.3
194 To build the swig-generated JNI wrapper code at least JDK-1.5 (or equivalent)
200 To build the swig-generated Python extension code at least Python 2.6 is
211 cwebp input.png -q 80 -o output.webp
213 on a 0->100 scale (0 being the lowest quality, 100 being the best. Default
215 You might want to try the -lossless flag too, which will compress the source
216 (in RGBA format) without any loss. The -q quality parameter will in this case
220 A longer list of options is available using the -longhelp command line flag:
222 > cwebp -longhelp
224 cwebp [-preset <...>] [options] in_file [-o out_file]
226 If input size (-s) for an image is not specified, it is
231 -h / -help ............. short help
232 -H / -longhelp ......... long help
233 -q <float> ............. quality factor (0:small..100:big), default=75
234 -alpha_q <int> ......... transparency-compression quality (0..100),
235 default=100
236 -preset <string> ....... preset setting, one of:
237 default, photo, picture,
239 -preset must come first, as it overwrites other parameters
240 -z <int> ............... activates lossless preset with given
243 -m <int> ............... compression method (0=fast, 6=slowest), default=4
244 -segments <int> ........ number of segments to use (1..4), default=4
245 -size <int> ............ target size (in bytes)
246 -psnr <float> .......... target PSNR (in dB. typically: 42)
248 -s <int> <int> ......... input size (width x height) for YUV
249 -sns <int> ............. spatial noise shaping (0:off, 100:max), default=50
250 -f <int> ............... filter strength (0=off..100), default=60
251 -sharpness <int> ....... filter sharpness (0:most .. 7:least sharp), default=0
252 -strong ................ use strong filter instead of simple (default)
253 -nostrong .............. use simple filter instead of strong
254 -sharp_yuv ............. use sharper (and slower) RGB->YUV conversion
255 -partition_limit <int> . limit quality to fit the 512k limit on
257 -pass <int> ............ analysis pass number (1..10)
258 -qrange <min> <max> .... specifies the permissible quality range
259 (default: 0 100)
260 -crop <x> <y> <w> <h> .. crop picture with the given rectangle
261 -resize <w> <h> ........ resize picture (after any cropping)
262 -mt .................... use multi-threading if available
263 -low_memory ............ reduce memory usage (slower encoding)
264 -map <int> ............. print map of extra info
265 -print_psnr ............ prints averaged PSNR distortion
266 -print_ssim ............ prints averaged SSIM distortion
267 -print_lsim ............ prints local-similarity distortion
268 -d <file.pgm> .......... dump the compressed output (PGM file)
269 -alpha_method <int> .... transparency-compression method (0..1), default=1
270 -alpha_filter <string> . predictive filtering for alpha plane,
271 one of: none, fast (default) or best
272 -exact ................. preserve RGB values in transparent area, default=off
273 -blend_alpha <hex> ..... blend colors against background color
277 -noalpha ............... discard any transparency information
278 -lossless .............. encode image losslessly, default=off
279 -near_lossless <int> ... use near-lossless image
280 preprocessing (0..100=off), default=100
281 -hint <string> ......... specify image characteristics hint,
284 -metadata <string> ..... comma separated list of metadata to
286 Valid values: all, none (default), exif, icc, xmp
288 -short ................. condense printed message
289 -quiet ................. don't print anything
290 -version ............... print version number and exit
291 -noasm ................. disable all assembly optimizations
292 -v ..................... verbose, e.g. print encoding/decoding times
293 -progress .............. report encoding progress
296 -jpeg_like ............. roughly match expected JPEG size
297 -af .................... auto-adjust filter strength
298 -pre <int> ............. pre-processing filter
303 -preset
304 -sns
305 -f
306 -m
309 * 'preset' will set up a default encoding configuration targeting a
311 so that subsequent options can take effect on top of this preset.
312 Default value is 'default'.
314 visual optimizations (like: segmentation map re-enforcement). This option
317 Usually, raising the sns value (at fixed -q value) leads to larger files,
321 in-loop processing. The higher the value, the smoother the
322 highly-compressed area will look. This is particularly useful when aiming
323 at very small files. Typical values are around 20-30. Note that using the
324 option -strong/-nostrong will change the type of filtering. Use "-f 0" to
326 * 'm' controls the trade-off between encoding speed and quality. Default is 4.
327 You can try -m 5 or -m 6 to explore more (time-consuming) encoding
340 ./dwebp test.webp -ppm -o test.ppm
343 The full list of options is available using -h:
345 > dwebp -h
346 Usage: dwebp in_file [options] [-o out_file]
348 Decodes the WebP image file to PNG format [Default].
352 -pam ......... save the raw RGBA samples as a color PAM
353 -ppm ......... save the raw RGB samples as a color PPM
354 -bmp ......... save as uncompressed BMP format
355 -tiff ........ save as uncompressed TIFF format
356 -pgm ......... save the raw YUV samples as a grayscale PGM
358 -yuv ......... save the raw YUV samples in flat layout
361 -version ..... print version number and exit
362 -nofancy ..... don't use the fancy YUV420 upscaler
363 -nofilter .... disable in-loop filtering
364 -nodither .... disable dithering
365 -dither <d> .. dithering strength (in 0..100)
366 -alpha_dither use alpha-plane dithering if needed
367 -mt .......... use multi-threading
368 -crop <x> <y> <w> <h> ... crop output with the given rectangle
369 -resize <w> <h> ......... scale the output (*after* any cropping)
370 -flip ........ flip the output vertically
371 -alpha ....... only save the alpha plane
372 -incremental . use incremental decoding (useful for tests)
373 -h ........... this help message
374 -v ........... verbose (e.g. print encoding/decoding times)
375 -quiet ....... quiet mode, don't print anything
376 -noasm ....... disable all assembly optimizations
389 -version ........... Print version number and exit.
390 -quiet ............. Do not show chunk parsing information.
391 -diag .............. Show parsing error diagnosis.
392 -summary ........... Show chunk stats summary.
393 -bitstream_info .... Parse bitstream header.
398 There's a little self-serve visualization tool called 'vwebp' under the
407 -version ..... print version number and exit
408 -noicc ....... don't use the icc profile if present
409 -nofancy ..... don't use the fancy YUV420 upscaler
410 -nofilter .... disable in-loop filtering
411 -dither <int> dithering strength (0..100), default=50
412 -noalphadither disable alpha plane dithering
413 -usebgcolor .. display background color
414 -mt .......... use multi-threading
415 -info ........ print info
416 -h ........... this help message
426 ---------
431 $ sudo apt-get install freeglut3-dev mesa-common-dev
433 - These libraries should be available in the OpenGL / GLUT frameworks.
439 https://hg.mozilla.org/mozilla-central/file/0e7639e3bdfb/gfx/qcms
447 $ make -f makefile.unix examples/vwebp
448 > nmake /f Makefile.vc CFG=release-static \
449 ../obj/x64/release-static/bin/vwebp.exe
461 File-level options (only used at the start of compression):
462 -min_size ............ minimize size
463 -loop <int> .......... loop count (default: 0, = infinite loop)
464 -kmax <int> .......... maximum number of frame between key-frames
466 -kmin <int> .......... minimum number of frame between key-frames
467 (0=disable key-frames altogether)
468 -mixed ............... use mixed lossy/lossless automatic mode
469 -v ................... verbose mode
470 -h ................... this help
471 -version ............. print version number and exit
473 Per-frame options (only used for subsequent images input):
474 -d <int> ............. frame duration in ms (default: 100)
475 -lossless ........... use lossless mode (default)
476 -lossy ... ........... use lossy mode
477 -q <float> ........... quality
478 -m <int> ............. method to use
480 example: img2webp -loop 2 in0.png -lossy in1.jpg
481 -d 80 in2.tiff -o out.webp
484 tokenized from this file. The file name must not start with the character '-'.
493 gif2webp [options] gif_file -o webp_file
495 -h / -help ............. this help
496 -lossy ................. encode image using lossy compression
497 -mixed ................. for each frame in the image, pick lossy
499 -q <float> ............. quality factor (0:small..100:big)
500 -m <int> ............... compression method (0=fast, 6=slowest)
501 -min_size .............. minimize output size (default:off)
502 lossless compression by default; can be
503 combined with -q, -m, -lossy or -mixed
505 -kmin <int> ............ min distance between key frames
506 -kmax <int> ............ max distance between key frames
507 -f <int> ............... filter strength (0=off..100)
508 -metadata <string> ..... comma separated list of metadata to
510 Valid values: all, none, icc, xmp (default)
511 -loop_compatibility .... use compatibility mode for Chrome
513 -mt .................... use multi-threading if available
515 -version ............... print version number and exit
516 -v ..................... verbose
517 -quiet ................. don't print anything
520 ---------
523 $ make -f makefile.unix examples/gif2webp
526 $ ./configure --enable-everything
537 -dump_frames <folder> dump decoded frames in PAM format
538 -min_psnr <float> ... minimum per-frame PSNR
539 -raw_comparison ..... if this flag is not used, RGB is
541 -max_diff <int> ..... maximum allowed difference per channel
544 -h .................. this help
545 -version ............ print version number and exit
548 ---------
551 $ make -f makefile.unix examples/anim_diff
554 $ ./configure --enable-everything
561 The ready-to-use ones are:
589 ----------------------
599 -------------------------------------- BEGIN PSEUDO EXAMPLE
603 // Setup a config, starting form a preset and tuning some additional
627 // Alternatively, one could use ready-made import functions like
632 // Set up a byte-output write method. WebPMemoryWriter, for instance.
644 // -> compressed data is the memory buffer described by wrt.mem / wrt.size
649 -------------------------------------- END PSEUDO EXAMPLE
663 pre-allocated buffer.
685 As data is made progressively available, this incremental-decoder object
711 Lastly, note that decoding can also be performed into a pre-allocated pixel
720 WebP decoding supports an advanced API which provides on-the-fly cropping and
721 rescaling, something of great usefulness on memory-constrained environments like
724 an otherwise too-large picture. Some CPU can be saved too, incidentally.
726 -------------------------------------- BEGIN PSEUDO EXAMPLE
766 bytes_remaining -= bytes_read;
781 -------------------------------------- END PSEUDO EXAMPLE
789 https://www.webmproject.org/code/contribute/submitting-patches/
794 Email: webp-discuss@webmproject.org
795 Web: https://groups.google.com/a/webmproject.org/group/webp-discuss