Skip to content

Commit

Permalink
Merge pull request #18500 from victoryforce/only-libraw-can-support-x3f
Browse files Browse the repository at this point in the history
[imageio] Only libraw can support x3f
  • Loading branch information
TurboGit authored Mar 4, 2025
2 parents 3721cd2 + 3e2feb0 commit e3f1e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/imageio/imageio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/imageio/imageio_libraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3f1e3f

Please sign in to comment.