aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-07 21:55:25 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-07 21:57:51 +0200
commitee202ca28b3c5f2ff1d1da5b41fea109f303da38 (patch)
treee03233add69213799caa9b9a2f82d93115ca6981
parent04db6ed6a1078a62ba09e9db64dccabc767e39c6 (diff)
downloadfiv-ee202ca28b3c5f2ff1d1da5b41fea109f303da38.tar.gz
fiv-ee202ca28b3c5f2ff1d1da5b41fea109f303da38.tar.xz
fiv-ee202ca28b3c5f2ff1d1da5b41fea109f303da38.zip
Fix enhancement of CMYK JPEGs
The conversion to RGB was done twice.
-rw-r--r--fiv-io.c3
1 files changed, 0 insertions, 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);