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>2025-11-07 22:45:32 +0100
commitb40299374a90c4a4a83bb43a3ddb923f9744eccc (patch)
treed7a50ef255cede0075a88594c0b402e7faa0ba80
parenta7ff9f220db0785e88a6013d286b5f6b92f71693 (diff)
downloadfiv-b40299374a90c4a4a83bb43a3ddb923f9744eccc.tar.gz
fiv-b40299374a90c4a4a83bb43a3ddb923f9744eccc.tar.xz
fiv-b40299374a90c4a4a83bb43a3ddb923f9744eccc.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 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;