Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-animated

qzb76.8kMIT2.0.2

Detects animated images

animated, animated gif, animated image, animated png, animated webp, animation, apng, gif, png, webp

readme

is-animated

npm travis coverage standard standard version

is-animated is a simple library for detecting animated images, it supports not only GIFs, but also APNG and WebP images.

Install

npm install is-animated

Example

const fs = require('fs')
const isAnimated = require('is-animated')

const filename = process.argv[2]

fs.readFile(filename, (err, buffer) => {
  const answer = isAnimated(buffer) ? 'Yes' : 'No'
  console.log(`Is "${filename}" animated? ${answer}.`)
})

License

MIT

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.0.2 (2022-01-13)

Bug Fixes

  • apng files with multiple IDAT/fdAT chunks in single frame (69dad3c), closes #16

2.0.0 (2019-03-25)

Bug Fixes

Chores

  • use convetional-commits for commit messages (24e86b9)

Features

BREAKING CHANGES

  • drop support for following Node.js versions: 0.10.x, 0.12.x, 4.x.x, 6.x.x

1.1.1 (2019-08-30)

1.1.0 (2016-08-24)

Code Refactoring

  • drop support for node 0.8.x (232c2d0)

Features

BREAKING CHANGES

  • support for node 0.8.x dropped

1.0.0 (2019-06-06)

Features