diff --git a/libvips/foreign/vips2jpeg.c b/libvips/foreign/vips2jpeg.c index dbf25447..9b2d52a8 100644 --- a/libvips/foreign/vips2jpeg.c +++ b/libvips/foreign/vips2jpeg.c @@ -1162,7 +1162,7 @@ write_vips( Write *write, int qfac, const char *profile, * high Q. */ if( no_subsample || - Q > 90 ) { + qfac > 90 ) { int i; for( i = 0; i < in->Bands; i++ ) {