image-format-support
v0.0.2
Published
Detect support for image formats(avif/heif/webp) in the browser
Downloads
2
Maintainers
Readme
image-format-support
Detect support for image formats(avif/heif/webp) in the browser
Install
npm i image-format-support
Usage
import { imageFormatSupport } from 'image-format-support';
imageFormatSupport().then((result) => {
console.log(`supports webp:` + result.webp);
console.log(`supports avif:` + result.avif);
console.log(`supports heif:` + result.heif);
});