Remove even pixel check for J2K subsample_mode auto (#2975)

Having a different colorspace and chroma subsampling just because the
source image happens to be an even or odd number of pixels is surprising
and hard to debug, so let's remove it.
This commit is contained in:
Felix Bünemann 2022-08-11 17:02:03 +02:00 committed by GitHub
parent a928c9a885
commit c6214b4d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -795,8 +795,6 @@ vips_foreign_save_jp2k_build( VipsObject *object )
jp2k->subsample =
!jp2k->lossless &&
jp2k->Q < 90 &&
save->ready->Xsize % 2 == 0 &&
save->ready->Ysize % 2 == 0 &&
(save->ready->Type == VIPS_INTERPRETATION_sRGB ||
save->ready->Type == VIPS_INTERPRETATION_RGB16) &&
save->ready->Bands == 3;