UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

19 lines (16 loc) 549 B
import { ExtensionType } from '../../../extensions/Extensions.mjs'; import { testImageFormat } from '../utils/testImageFormat.mjs'; "use strict"; const detectWebp = { extension: { type: ExtensionType.DetectionParser, priority: 0 }, test: async () => testImageFormat( "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=" ), add: async (formats) => [...formats, "webp"], remove: async (formats) => formats.filter((f) => f !== "webp") }; export { detectWebp }; //# sourceMappingURL=detectWebp.mjs.map