-2

I'm "playing" with MediaStore.Images.Media and I saw that I can only retrieve BMP format (MediaStore.Images.Thumbnails.getThumbnail() - MediaStore.Images.Media.getThumbnail()), while the same images on my device actually are JPG.

I didn't find any clear explanation on the internet.

Can anybody help me understand better?

Thank you in advance.

MDP
  • 4,177
  • 21
  • 63
  • 119

1 Answers1

1

getThumbnail() returns a Bitmap. This has nothing to do with the BMP file format. A Bitmap is a decoded image, regardless of the encoding of whatever the image came from (JPEG, PNG, WebP, GIF, BMP, etc.).

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491