Info: The command line utility webpinfo can tell you whether a WebP is lossy or lossless.
Code: Select all
$ webpinfo Axure-Prototyping-1-toc-state.webp
RIFF HEADER:
File size: 38740
Chunk VP8X at offset 12, length 18
ICCP: 0
Alpha: 1
EXIF: 0
XMP: 0
Animation: 0
Canvas size 2880 x 1750
Chunk VP8L at offset 30, length 38576
Width: 2880
Height: 1750
Alpha: 1
Animation: 0
Format: Lossless (2) 👈 Here is the info whether the WebP is "Lossless (2)" or "Lossy (1)"
No error detected.
There were 1 warning(s).
…
File Format: WebP
File Length: 140 KB
Lossless: Yes
Compression: 1:20
…
…
File Format: WebP
File Length: 280 KB
Lossless: No
Compression: 1:40
…
Alternative Proposal: More capable attribute "Quality" with values: Lossless, Lossy, and if lossy and the encoder's quality setting can be determined, state that in brackets.
File Format: WebP
File Length: 140 KB
Quality: Lossless
Compression: 1:52
File Format: JPEG
File Length: 350 KB
Quality: Lossy
Compression: 1:9
File Format: JPEG
File Length: 350 KB
Quality: Lossy (q=80, found in <AttributeX>)
Compression: 1:12