How can I get the dimensions for webp image in java ?
For verifying the whether the image is webp or not im checking the image byte from from 8-11
is there any way to get the dimension like that ?
You would have to read the values from the bitstream, but as I mentioned there are 3 cases: lossy, lossless and animation. The WebPGetInfo() and WebPGetFeatures() calls get the values with ParseHeadersInternal() [4]. You can take a look at the code to get an idea of how the values are extracted.
Android provides this information in Java with the ImageDecoder.ImageInfo class [5].