From a76260156421713f09ea29ee15f7f88b85deeb56 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 15 Jan 2020 08:32:08 +0000 Subject: [PATCH] revise jpegsave auto no-chroma IM actually uses Q >= 90, not > 90, to disable chroma subsampling. Adjust libvips to match. Thanks @csnover --- libvips/foreign/vips2jpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvips/foreign/vips2jpeg.c b/libvips/foreign/vips2jpeg.c index b96ab3e9..103deff0 100644 --- a/libvips/foreign/vips2jpeg.c +++ b/libvips/foreign/vips2jpeg.c @@ -79,7 +79,7 @@ * 26/5/16 * - switch to new orientation tag * 9/7/16 - * - turn off chroma subsample for Q > 90 + * - turn off chroma subsample for Q >= 90 * 7/11/16 * - move exif handling out to exif.c * 27/2/17 @@ -631,7 +631,7 @@ write_vips( Write *write, int qfac, const char *profile, * high Q. */ if( no_subsample || - qfac > 90 ) { + qfac >= 90 ) { int i; for( i = 0; i < in->Bands; i++ ) {