Bitmap bmp = BitmapFactory.decodeStream(inputStream, null, op);
bmp.getConfig() = null;
why bmp.getConfig() = null;
anybody who knows, please help me!
It looks like Bitmaps decoded from GIFs don't have a config. From AOSP's Bitmap source code,
public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height, Matrix m, boolean filter) {
final Config config = source.getConfig();
// GIF files generate null configs, assume ARGB_8888
if (config != null) {
...
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With