From 996ba0a9a30869bd25cbc3db32f5bdf2c992b64d Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Mon, 13 Apr 2020 13:31:06 +0200 Subject: [PATCH] Partial decoding or wrong dimensions of X-T30 files, fixes #5709, code taken from ART --- rtengine/dcraw.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rtengine/dcraw.cc b/rtengine/dcraw.cc index b8d5b9895..29796ea67 100644 --- a/rtengine/dcraw.cc +++ b/rtengine/dcraw.cc @@ -10048,6 +10048,9 @@ canon_a5: } else if (!strncmp(model, "X-A3", 4) || !strncmp(model, "X-A5", 4)) { width = raw_width = 6016; height = raw_height = 4014; + } else if (!strcmp(model, "X-Pro3") || !strcmp(model, "X-T3") || !strcmp(model, "X-T30")) { + width = raw_width = 6384; + height = raw_height = 4182; } top_margin = (raw_height - height) >> 2 << 1; left_margin = (raw_width - width ) >> 2 << 1;