I have an image file of webP format. How can I check if it is animated webP or a static image programmatically?
Asked
Active
Viewed 545 times
1 Answers
0
Since you added fresco tag to the question, you could use the following utility:
ImageFormatChecker.getImageFormat_WrapIOException(encodedImage.getInputStream())
should return ImageFormat.WEBP_ANIMATED

defhlt
- 1,775
- 2
- 17
- 24