Remove unsupported animation props from AVIF #2870

This commit is contained in:
Lovell Fuller
2021-09-05 08:46:15 +01:00
parent e044788f63
commit 5d98bcd8d8
7 changed files with 51 additions and 1 deletions

View File

@@ -510,6 +510,17 @@ namespace sharp {
return copy;
}
/*
Remove animation properties from image.
*/
VImage RemoveAnimationProperties(VImage image) {
VImage copy = image.copy();
copy.remove(VIPS_META_PAGE_HEIGHT);
copy.remove("delay");
copy.remove("loop");
return copy;
}
/*
Does this image have a non-default density?
*/