From ee202ca28b3c5f2ff1d1da5b41fea109f303da38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Wed, 7 Jun 2023 21:55:25 +0200 Subject: [PATCH] Fix enhancement of CMYK JPEGs The conversion to RGB was done twice. --- fiv-io.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fiv-io.c b/fiv-io.c index 67805e9..0540465 100644 --- a/fiv-io.c +++ b/fiv-io.c @@ -1612,9 +1612,6 @@ open_libjpeg_enhanced( while (cinfo.output_scanline < cinfo.output_height) (void) jpeg_read_scanlines(&cinfo, lines + cinfo.output_scanline, cinfo.output_height - cinfo.output_scanline); - if (cinfo.out_color_space == JCS_CMYK) - trivial_cmyk_to_host_byte_order_argb( - surface_data, cinfo.output_width * cinfo.output_height); (void) jpegqs_finish_decompress(&cinfo); load_jpeg_finalize(surface, use_cmyk, ctx, data, len);