diff --git a/ChangeLog b/ChangeLog index dbbb6984..1341d6f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ - add max and min to region shrink [rgluskin] - allow \ as an escape character in vips_break_token() [akemrir] - tiffsave has a "depth" param to set max pyr depth +- libtiff LOGLUV images load and save as libvips XYZ 20/6/19 started 8.9.1 - don't use the new source loaders for new_from_file or new_from_buffer, it diff --git a/libvips/foreign/tiff2vips.c b/libvips/foreign/tiff2vips.c index 4c908bdd..c8b7873e 100644 --- a/libvips/foreign/tiff2vips.c +++ b/libvips/foreign/tiff2vips.c @@ -2270,8 +2270,7 @@ rtiff_header_read( Rtiff *rtiff, RtiffHeader *header ) if( header->compression == COMPRESSION_JPEG ) TIFFSetField( rtiff->tiff, TIFFTAG_JPEGCOLORMODE, JPEGCOLORMODE_RGB ); - - if( header->photometric_interpretation == PHOTOMETRIC_YCBCR ) { + else if( header->photometric_interpretation == PHOTOMETRIC_YCBCR ) { /* We rely on the jpg decompressor to upsample chroma * subsampled images. If there is chroma subsampling but * no jpg compression, we have to give up.