mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +02:00
cwebp: add -resize_mode
* `down_only`: downsample only if one of the input dimensions is larger than the target * `up_only`: upsample only if one of the input dimensions is smaller than the target * `always`: the original behavior This change doesn't add related modes like area (@ in ImageMagick) or minimum width/height (^ in ImageMagick). These can be added if a need arises. Bug: webp:405437935 Change-Id: I7752789dce6e3b9c3fb7d6edf63ca5559bb3463c
This commit is contained in:
@ -65,6 +65,7 @@ Options:
|
||||
(default: 0 100)
|
||||
-crop <x> <y> <w> <h> .. crop picture with the given rectangle
|
||||
-resize <w> <h> ........ resize picture (*after* any cropping)
|
||||
-resize_mode <string> .. one of: up_only, down_only, always (default)
|
||||
-mt .................... use multi-threading if available
|
||||
-low_memory ............ reduce memory usage (slower encoding)
|
||||
-map <int> ............. print map of extra info
|
||||
|
Reference in New Issue
Block a user