Questions tagged [android-exifinterface]

41 questions
1
vote
0 answers

Cannot write GPSTimeStamp properly in ExifInterface

I'm trying to write that property as exif data using exif interface, but the exif reader I'm using never recognizes the defined data. I've tried it with things like the following: exif.setAttribute("GPSTimeStamp", "((15, 1), (32, 1), (7, 1))");…
user2638180
  • 1,013
  • 16
  • 37
1
vote
1 answer

Copy all exif tags from one jpeg to another

I am trying to figure out the best way to copy all exif tags from one JEPG to another. Looks like ExifInterface (https://developer.android.com/reference/android/media/ExifInterface) is my best bet. However, There is no way to grab all tags…
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
1
vote
1 answer

All images taken with Android CameraX have incorrect orientation in their EXIF data

I am using CameraX https://developer.android.com/training/camerax to take some images. However, all my images come out the wrong rotation. They are all marked: ORIENTATION_ROTATE_90 Yes, I have checked to ensure that the orientation lock is not on…
user-44651
  • 3,924
  • 6
  • 41
  • 87
1
vote
0 answers

How to detect Exif String encoding

I'm trying to get the exif of user comment using native Android API associated with ExifInterface.TAG_USER_COMMENT this value should return a String but unfortunately seems that the String is encoded in some way. E.g. if I get the user comment TAG…
AndreaF
  • 11,975
  • 27
  • 102
  • 168
0
votes
1 answer

android exif get longtitude and latitude

I used to use the following code to get the address of a picture. And it worked well. private static AddressVO getAddress(ExifInterface exifInterface, Context context){ if (exifInterface == null){ return null; } String latValue =…
Seaky Lone
  • 992
  • 1
  • 10
  • 29
0
votes
0 answers

Reading photos with Exif metadata

I am implementing a grid gallery in my Android app in which photos are sorted according to the photo's Exif metadata. All photos are read from a specific folder stored in Shared Storage at /DCIM or /Pictures. Since the photos will be sorted by their…
Mike
  • 125
  • 1
  • 12
0
votes
1 answer

Location information parsed failure with ExifInterface in Android

I'm working on a map gallery. I need location information of photos. While working on this, I encountered a wired situation. I used intent to call ACTION_OPEN_DOCUMENT and picked an image. Then used its MediaStore.Images.Media.EXTERNAL_CONTENT_URI…
0
votes
1 answer

Permission denied error when using ExifInterface with Kotlin

I'm currently working on an app where u can edit some metatags of an image. The app is build using flutter. To edit the metadata I'm using Kotlin. Currently I can read metadata from a given image path like /storage/emulated/0/Download/05-03.jpg and…
Broump
  • 303
  • 3
  • 9
0
votes
0 answers

FileNotFoundException when using ExifInterface onActivityResult

what I want to do is to take a photo with the cellphone en then displays that image in a imageview, but when I did that the image appeared roated 90 degrees. So I searched for solutions to that issue and found that I had to do it this way. private…
0
votes
1 answer

Android ExifInterface longitude & latitude missing after android 10

I'm trying to create an app that allows the user to select a file and display the GPS long/lat found in the photo EXIF metadata. I can get the GPS long/lat if the user selects an image from the recent tab or Downloads tab(example uri:…
0
votes
1 answer

How can I get the info of an image with exifinterface in the fragment

Uri uri = ImageView.setImageURI(Uri.parse(new File(path).toString())); gfgIn = getContentResolver().openInputStream(uri); ExifInterface exifInterface = new ExifInterface(gfgIn); The code above isn't work in my fragment. How can I rewrite it ?
Mr D
  • 9
  • 3
0
votes
0 answers

rotate the bitmap received the AWS using EXIF

I have a ExifUtil which rotates the bitmap based on EXIF, this class works fine if the path of the image local on the device. I want to use the same class or same functionality if the image path is from the AWS. how can I achieve that please. Thanks…
BRDroid
  • 3,920
  • 8
  • 65
  • 143
0
votes
1 answer

EXIF direction (compass) tags

I would like to add the compass bearing/direction to the EXIF metadata of images, however I am quite confused about the many tags in ExifInterface and especially, which formats to use. Could anyone please explain to me for what the different tags…
Mike
  • 125
  • 1
  • 12
0
votes
1 answer

JPEG gets corrupt when saving image with exif metadata

I am developing an Android app that saves bitmaps as jpeg images to the external storage. It occasionally happens that the JPEGs get corrupt (see image below). I have realized that corruption (eventually) only occurs when saveExif() is called. If I…
0
votes
0 answers

Uri to bitmap conversion rotates the image

I have an app that has image upload feature and after uploading the image on onActivityResult() I receive the Uri of the image and turn it into bitmap with the following function : private fun uriToBitmap(selectedFileUri: Uri): Bitmap? { …