An open API service indexing awesome lists of open source software.

https://github.com/narazaka/webp-is-lossless

check WebP is lossless or not
https://github.com/narazaka/webp-is-lossless

webp

Last synced: 7 months ago
JSON representation

check WebP is lossless or not

Awesome Lists containing this project

README

          

# webp-is-lossless

check WebP is lossless or not

## Install

```sh
npm i webp-is-lossless
```

## Usage

```typescript
import { webpIsLossless } from "webp-is-lossless";

function showIsLossless(file) {
const reader = new FileReader();

reader.readAsArrayBuffer(file);

reader.onload = function () {
const isLossless = webpIsLossless(new Uint8Array(reader.result));
console.log(isLossless);
};
}
```

## License

[Zlib license](LICENSE)