From ae5cbcd98539bda3283913f05007a5183f1f9aac Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 17 Jul 2018 12:39:48 +0100 Subject: [PATCH] add note on '!' to vipsthumbnail docs oops, this was missing, thanks beaudet see https://github.com/jcupitt/libvips/issues/659 --- doc/Using-vipsthumbnail.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/Using-vipsthumbnail.md b/doc/Using-vipsthumbnail.md index 90e25ac5..2c7950ee 100644 --- a/doc/Using-vipsthumbnail.md +++ b/doc/Using-vipsthumbnail.md @@ -82,6 +82,9 @@ is. You can append `<` or `>` to mean only resize if the image is smaller or larger than the target. +You can append `!` to force a resize to the exact target size, breaking +the aspect ratio. + # Cropping `vipsthumbnail` normally shrinks images to fit within the box set by `--size`. @@ -187,7 +190,7 @@ You can give options to the image write operation as a list of comma-separated arguments in square brackets. For example: ``` -$ vipsthumbnail fred.jpg ../jim.tif -o > tn_%s.jpg[Q=90,optimize_coding] +$ vipsthumbnail fred.jpg ../jim.tif -o tn_%s.jpg[Q=90,optimize_coding] ``` will write jpeg images with quality 90, and will turn on the libjpeg coding