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-03 18:05:41 +0100
commitc0ba3568e343113bfb98f48999a3a761a8a10c95 (patch)
treead3ed9804eda9da78ecce3d79c155c9182a9466c
parent2234fd008d294ebfa425e48844961c254cb4f11b (diff)
downloadfiv-c0ba3568e343113bfb98f48999a3a761a8a10c95.tar.gz
fiv-c0ba3568e343113bfb98f48999a3a761a8a10c95.tar.xz
fiv-c0ba3568e343113bfb98f48999a3a761a8a10c95.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;