644 changes: 644 additions & 0 deletions src/imageio/format/jxl.c

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions src/imageio/storage/gallery.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,11 @@ int set_params(dt_imageio_module_storage_t *self, const void *params, const int
int supported(dt_imageio_module_storage_t *storage, dt_imageio_module_format_t *format)
{
const char *mime = format->mime(NULL);
if(strcmp(mime, "image/jpeg") == 0)
return 1;
if(strcmp(mime, "image/png") == 0)
return 1;
if(strcmp(mime, "image/webp") == 0)
return 1;
if(strcmp(mime, "image/jpeg") == 0) return 1;
if(strcmp(mime, "image/png") == 0) return 1;
if(strcmp(mime, "image/webp") == 0) return 1;
if(strcmp(mime, "image/avif") == 0) return 1;
if(strcmp(mime, "image/jxl") == 0) return 1;

return 0;
}
Expand All @@ -592,4 +590,3 @@ int supported(dt_imageio_module_storage_t *storage, dt_imageio_module_format_t *
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
// clang-format on