Skip to content

Commit

Permalink
Add jpf and jpx file extensions to the GraphicsMagick loader whitelist
Browse files Browse the repository at this point in the history
victoryforce committed Oct 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ce5c17b commit 81bc593
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/imageio/imageio_gm.c
Original file line number Diff line number Diff line change
@@ -39,9 +39,9 @@
static gboolean _supported_image(const gchar *filename)
{
const char *extensions_whitelist[] = { "tiff", "tif", "pbm", "pgm", "ppm", "pnm",
"webp", "jpc", "jp2", "bmp", "dcm", "jng",
"miff", "mng", "pam", "gif", "jxl", "fit",
"fits", "fts", NULL };
"webp", "jpc", "jp2", "jpf", "jpx", "bmp",
"miff", "dcm", "jng", "mng", "pam", "gif",
"fits", "fit", "fts", "jxl", NULL };
gboolean supported = FALSE;
char *ext = g_strrstr(filename, ".");
if(!ext) return FALSE;

0 comments on commit 81bc593

Please sign in to comment.