Questions tagged [android-exifinterface]

41 questions
0
votes
0 answers

Android: Get address of an image using ExifInterface in Kotlin

Is it possible to get the image address using ExifInterface? On Android, while viewing the exif information image has the address populated.
tommy
  • 1
  • 1
0
votes
1 answer

Exifinterface saveAttributes() fail because of 'Failed to copy original file to temp file'

So now I'm writing custom camera, and I want to write location into images that I captured, for some reason I cannot use builder.set() here. The file was created like this: String name = System.currentTimeMillis() + ".jpg"; file = new…
0
votes
0 answers

BitmapFactory.decodeByteArray() works incorrect after using ExifInterface

I try to add simple functionality with getting picture from gallery or from camera in my Android app. And all works fine, I successfully obtain uri of picture and after that want to show this picture to user. And this code works well: private fun…
Alex D.
  • 1,424
  • 15
  • 40
0
votes
1 answer

Write EXIF data after have added image to MediaStore

I just need to add some Exif metadata to a Jpeg saved to MediaStore (using Content Resolver) Here how I save the image: ContentValues values = new ContentValues(); values.put(MediaStore.Images.Media.DISPLAY_NAME, filename); …
0
votes
1 answer

How to edit exif in android Q

I want to create an jpg and edit its exif. Before, I use ExifInterface: ExifInterface exifInterface = new ExifInterface(filePath) exifInterface.setAttribute(...) exifInterface.setAttribute(...) exifInterface.saveAttributes(); But in Android Q, I…
czw299
  • 38
  • 5
0
votes
1 answer

How to get EXIF attributes that Android ExifInterface cannot find?

I am trying to read the EXIF information of images taken by a UAV (more specifically, DJI Mavic 2). I have sucessfully get some attributes ( "GPS Altitude","GPS Longitude","GPS Latitude") by using ExifInterface. However, I realize that ExifInterface…
user10253771
  • 670
  • 5
  • 19
0
votes
0 answers

ExifInterface FileNotFoundException /storage/emulated/0/DCIM/Camera/IMG_20200319_211738.jpg

After capturing an image from the Android Emulator in Android Studio i get a content URI and through that i want to proccess the Image. One of that proccess is that i want to modify the orientation. So i have a function that does…
0
votes
1 answer

Image is uploading rotated to the server in my Android Project?

My Problem here is while uploading image to the Server, the image uploads rotated. Any Help Please. Can i get any help in rectifying my problem. Help me out. And i don't know how to use exif interface to do that. Uri imagesUri = null; if…
0
votes
0 answers

Image still rotated after Editing Exif Data

In My app the User captures an image from the gallery or camera it is then converted to PDF, Now my problem is that images captured from the samsung devices are rotated, I am trying to edit the exif data but it does not work, there is no errors…
Ruben Meiring
  • 333
  • 2
  • 21
0
votes
1 answer

AndroidX ExifInterface can read camera make/model but not lens make/model

I'm building an app which reads EXIF data from images and overlays that data on the image so you can share your camera settings with a nice graphic rather than manually typing them out (EG: "F/1.4 at 1/200 ISO400") I'm using AndroidX ExifInterface…
-1
votes
1 answer

ExifInterface: getAttribute for TAG_USER_COMMENT only returns "UNICODE"

I am using ExifInterface to read the UserComments EXIF tag in a jpeg file in my Java Android Studio app. I can use the exiftool command in Linux to verify that there IS data in the UserComment field. ExifInterface exif = new…
Pfredd
  • 417
  • 6
  • 15
1 2
3