is-image-animated
v1.0.2
Published
Checks if the provided image buffer has animations
Downloads
284
Readme
Is Image Animated
is-image-animated detects whether the provided buffer is an animated image. Detects GIF, PNG and WebP
Installation
Use npm to install
npm i is-image-animatedUsage
import {isImageAnimated} from 'is-image-animated';
const buffer = fs.readFileSync(filePath);
const isAnimated = isImageAnimated(buffer);Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
