Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

vivaxy/is-animated-image

Repository files navigation

is-animated-image

🖼️ Check if an image is animated.

Created by create-n.

Build Status NPM Version NPM Downloads MIT License Standard Version Codecov

DOI

Usage

const imageBuffer = null /* get image buffer somewhere*/;
const getImageMeta = require('is-animated-image');
const { ext, mime, animated } = getImageMeta(imageBuffer);
if (animated) {
  // is animated image
} else {
  // is not animated image
}