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
- Host: GitHub
- URL: https://github.com/narazaka/webp-is-lossless
- Owner: Narazaka
- License: zlib
- Created: 2023-07-07T15:26:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T21:44:01.000Z (over 1 year ago)
- Last Synced: 2025-03-19T22:53:03.719Z (7 months ago)
- Topics: webp
- Language: TypeScript
- Homepage:
- Size: 109 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)