I would like to get a bitmap's dimensions in Android without reading the entire file.
I tried using the recommended inJustDecodeBounds
and a custom InputStream
that logged the read()
s. Unfortunately based on this, the Android BitmapFactory
appears to read a large amount of bytes.
Similar to: Java/ImageIO getting image dimensions without reading the entire file? for Android, without using ImageIO.