[File] [PATCH 0/3] Add support for VP8X and VP8L chunks in WebP

Emmanuel Gil Peyrot linkmauve at linkmauve.fr
Fri Apr 5 12:39:45 UTC 2024


Currently only the "VP8 " chunk was parsed, also named the Simple File
Format (Lossy) in the specification[0].  This series adds the other two
possible chunks in WebP files, and tries to extract a bit of information
from them.

These chunks encode the width and height as a little endian number minus
one, the VP8X chunk uses 24-bit integers whereas the VP8L chunk uses
14-bit integers, which I haven’t been able to parse using the magic
format.

If you prefer, I can remove support for width and height and leave the
rest of the information available, after which this series will be ready
to merge.

[0] https://developers.google.com/speed/webp/docs/riff_container

Emmanuel Gil Peyrot (3):
  Display more info in case of extended WebP files
  Parse whether a WebP file is lossless
  Fix VP8 scaling factor matching

 magic/Magdir/riff | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)

-- 
2.44.0



More information about the File mailing list