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-01-01 23:27:15 +0100
commit14c3845db4ac240ec8e375a1f7347c7e811ebae8 (patch)
tree23f0e7fdbf5a32c08db0468dfe6dc5f58989df4e
parent1bc52fa405a67c0fb98157e0be1eb870055f7e3c (diff)
downloadfiv-14c3845db4ac240ec8e375a1f7347c7e811ebae8.tar.gz
fiv-14c3845db4ac240ec8e375a1f7347c7e811ebae8.tar.xz
fiv-14c3845db4ac240ec8e375a1f7347c7e811ebae8.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;