Reading EXIF ​​data from an image using Picasso in android

I have the following code that loads an image from a url and displays it in imageView:

Picasso.with(getActivity())
          .load(mImagesUrls[mPosition])
          .resize(500, 500)
          .centerCrop()
          .into(mSlideImage);

But besides displaying the image, I also need to get some EXIF ​​data. Googling, how to do this for Android, will lead me to the "ExifInterface" class, but its constructors look like this:

  • ExifInterface (String file name)
    • Read Exif tags from the specified file .
  • ExifInterface (FileDescriptor fileDescriptor)
    • Reads Exif tags from the specified file descriptor image .
  • ExifInterface (InputStream inputStream)
    • Reads Exif tags from the specified stream stream .

, ? , Picasso, , , , EXIF.

+4

Source: https://habr.com/ru/post/1651621/


All Articles