From 80dba039cefea1c24b10e24eacbb55f3af72466f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sun, 25 Jun 2023 02:20:34 +0200 Subject: NOPUSH: Avoid JPEG enhancement within the TIFF/EP loader I'm not sure if I want to get rid of it completely like this, it should just load progressively. --- fiv-io.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fiv-io.c') diff --git a/fiv-io.c b/fiv-io.c index 2d32990..5c7e75d 100644 --- a/fiv-io.c +++ b/fiv-io.c @@ -1903,8 +1903,9 @@ load_tiff_ep( return NULL; } - FivIoImage *image = open_libjpeg_turbo( - (const char *) out.jpeg, out.jpeg_length, ctx, error); + // Ignore ctx->enhance explicitly, for when we don't have LibRaw at all. + FivIoImage *image = load_libjpeg_turbo((const char *) out.jpeg, + out.jpeg_length, ctx, load_libjpeg_simple, error); if (!image) return NULL; -- cgit v1.2.3-70-g09d2