-
public class WebpUtilThis class contains utility method in order to manage the WebP format metadata
-
-
Method Summary
Modifier and Type Method Description final static Pair<Integer, Integer>getSize(InputStream stream)This method checks for the dimension of the WebP image from the given InputStream. final static Integerget2BytesAsInt(InputStream stream)-
-
Method Detail
-
getSize
final static Pair<Integer, Integer> getSize(InputStream stream)
This method checks for the dimension of the WebP image from the given InputStream. We don't support mark/reset and the Stream is always closed.
- Parameters:
stream- The InputStream used for read WebP data
-
get2BytesAsInt
final static Integer get2BytesAsInt(InputStream stream)
-
-
-
-