diff --git a/src/imageio/imageio.c b/src/imageio/imageio.c index de379ab22aaf..a3390c0ff183 100644 --- a/src/imageio/imageio.c +++ b/src/imageio/imageio.c @@ -300,7 +300,7 @@ static const dt_magic_bytes_t _magic_signatures[] = { { DT_FILETYPE_RW2, TRUE, 0, 8, dt_imageio_open_rawspeed, { 'I', 'I', 'U', 0x00, 0x08, 0x00, 0x00, 0x00 } }, // Sigma Foveon X3F file - { DT_FILETYPE_X3F, TRUE, 0, 4, NULL, + { DT_FILETYPE_X3F, TRUE, 0, 4, dt_imageio_open_libraw, { 'F', 'O', 'V', 'b' } }, // Nikon NEF files are TIFFs with (usually) the string "NIKON CORP" early in the file { DT_FILETYPE_NEF, FALSE, 0, 4, dt_imageio_open_rawspeed, diff --git a/src/imageio/imageio_libraw.c b/src/imageio/imageio_libraw.c index e091be965046..84c2b59faea3 100644 --- a/src/imageio/imageio_libraw.c +++ b/src/imageio/imageio_libraw.c @@ -289,7 +289,7 @@ static gboolean _supported_image(const gchar *filename) // At the moment of writing this code CR3 files are not supported by RawSpeed, // so they are always processed by LibRaw. gchar *extensions_whitelist; - const gchar *always_by_libraw = "cr3"; + const gchar *always_by_libraw = "cr3 x3f"; gchar *ext = g_strrstr(filename, "."); if(!ext)