Fix not animated gifs support

This commit is contained in:
DarthSim
2018-12-21 02:09:58 +06:00
parent 5501c3cff7
commit f679a7ddec
2 changed files with 12 additions and 1 deletions

7
vips.h
View File

@@ -148,6 +148,13 @@ vips_band_format(VipsImage *in) {
return in->BandFmt;
}
gboolean
vips_is_animated_gif(VipsImage * in) {
return( vips_image_get_typeof(in, "page-height") != G_TYPE_INVALID &&
vips_image_get_typeof(in, "gif-delay") != G_TYPE_INVALID &&
vips_image_get_typeof(in, "gif-loop") != G_TYPE_INVALID );
}
gboolean
vips_image_hasalpha_go(VipsImage * in) {
#if VIPS_SUPPORT_HASALPHA