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-02 02:09:28 +0100
commitb63226b5e0e74cf458fcd76fb123195f81ce03df (patch)
tree89fd21371df2d98e29894db6aedc2b445d313d87
parent0fceaf7728e8efeffb158271a8fe74e4db1a6a7a (diff)
downloadfiv-b63226b5e0e74cf458fcd76fb123195f81ce03df.tar.gz
fiv-b63226b5e0e74cf458fcd76fb123195f81ce03df.tar.xz
fiv-b63226b5e0e74cf458fcd76fb123195f81ce03df.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;