aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-25 02:20:34 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-03-21 04:06:28 +0100
commitf891ec1730f77a01108d95438f83cddb86bca308 (patch)
treefa9c5ce406ab3809f4dd0de8d2af622809fde01b
parentd68e09525c90d82d21335b7c7bb1935ae9545adb (diff)
downloadfiv-f891ec1730f77a01108d95438f83cddb86bca308.tar.gz
fiv-f891ec1730f77a01108d95438f83cddb86bca308.tar.xz
fiv-f891ec1730f77a01108d95438f83cddb86bca308.zip
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.
-rw-r--r--fiv-io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fiv-io.c b/fiv-io.c
index a405c93..498b155 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -1898,8 +1898,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;