Skip to content

Commit

Permalink
Support animated JPEG XL images
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Jul 14, 2024
1 parent 77e36ff commit 5572f8f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/tilesource.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ tilesource_open(Tilesource *tilesource, int level)
"page", level,
NULL);
}
else if (vips_isprefix("webp", tilesource->loader) ||
vips_isprefix("gif", tilesource->loader)) {
else if (vips_isprefix("webp", tilesource->loader) ||
vips_isprefix("gif", tilesource->loader) ||
vips_isprefix("jxl", tilesource->loader)) {
/* These formats have pages all the same size and support page and n.
*/
image = vips_image_new_from_file(tilesource->filename,
Expand Down Expand Up @@ -209,7 +210,7 @@ tilesource_render_notify_idle(void *user_data)
}

/* Come here from the vips_sink_screen() background thread when a tile has been
* calculated. This is a bbackground thread, so we add an idle callback
* calculated. This is a background thread, so we add an idle callback
* which will be run by the main thread when it next hits the mainloop.
*/
static void
Expand Down Expand Up @@ -1226,9 +1227,9 @@ tilesource_print(Tilesource *tilesource)
printf("\tpages_same_size = %d\n", tilesource->pages_same_size);
printf("\tall_mono = %d\n", tilesource->all_mono);
printf("\ttype = %s\n",
vips_enum_nick(TYPE_SOURCE_TYPE, tilesource->type));
vips_enum_nick(TYPE_TYPE, tilesource->type));
printf("\tmode = %s\n",
vips_enum_nick(TYPE_SOURCE_MODE, tilesource->mode));
vips_enum_nick(TYPE_MODE, tilesource->mode));
printf("\tdelay = %p\n", tilesource->delay);
printf("\tn_delay = %d\n", tilesource->n_delay);
printf("\tdisplay_width = %d\n", tilesource->display_width);
Expand Down

0 comments on commit 5572f8f

Please sign in to comment.