Sample Header Ad - 728x90

Cwebp -resize only if image is larger

6 votes
1 answer
4596 views
cwebp - Compress an image file to a WebP file -resize width height Resize the source to a rectangle with size width x height. If either (but not both) of the width or height parameters is 0, the value will be calculated preserving the aspect-ratio. The -resize option resizes the image to width but I want resize to occur only if image is larger than specified width x height.
Asked by Garvit Jain (161 rep)
Jan 29, 2019, 04:37 AM
Last activity: Jul 31, 2020, 08:40 AM