Search code examples
javaandroidkotlinwebp

The width and height of a webp image are stored in which byte


I want to get the width and height of the webp image in the gradle plugin, so I want to translate the bytes into width and height by finding the byte position where the width and height are located

nothing,I can't find the file format for webp


Solution

  • Based on the official documentation, it looks like it can be found right after the Reserved section of the header.