When I see a JPG file, I know for sure this file is lossy. When I see a PNG file, I know for sure it is lossless.
But WebP is a different thing, it supports both lossless and lossy "modes", so how I can detect whether a downloaded .webp
file is lossy or lossless?