Questions tagged [exif]

Exchangeable image file format is a standard for storing metadata such as camera, lens, and geo information in JPEG and TIFF files

Exchangeable image file format is a standard for storing metadata from digital cameras.

The tags defined in the Exif standard cover a broad spectrum:

  • Date and time information.

  • Camera settings:e camera model and make, orientation (rotation), and ISO speed, metering mode

  • Lens settings: make and model, aperture, shutter speed, focal length

  • File settings: File format, color mode

  • A thumbnail for previewing the picture

  • Descriptions

  • Copyright information.

Like EXIF, also holds meta information in image files.

1824 questions
53
votes
6 answers

Rotating an image with orientation specified in EXIF using Python without PIL including the thumbnail

I have the following scenario: I am sending an image from iPhone along with the EXIF information to my Pyhon socket server. I need the image to be properly oriented based on the actual orientation when the image was taken. I know IOS always saves…
ATOzTOA
  • 34,814
  • 22
  • 96
  • 117
50
votes
6 answers

Get date and time when photo was taken from EXIF data using PIL

I can get the EXIF data from an image using PIL, but how can I get the date and time that the photo was taken?
sashoalm
  • 75,001
  • 122
  • 434
  • 781
48
votes
7 answers

A final answer on how to get Exif data from URI

This topic has been discussed in lots of questions here, with mostly different results and, due to API changes and different types of URIs, no definitive answer. I don’t have an answer myself, but let’s talk about it. The ExifInterface has a single…
natario
  • 24,954
  • 17
  • 88
  • 158
47
votes
1 answer

Extract EXIF data as text using ImageMagick

Is there a simple way to extract EXIF data as text from an image file using ImageMagick. Something like the way to do it for IPTC data: convert input.jpeg data.iptc <= binary data convert input.jpeg data.iptctext <= textual data Sadly this doesn't…
Werzi2001
  • 2,035
  • 1
  • 18
  • 41
43
votes
5 answers

Images taken with ACTION_IMAGE_CAPTURE always returns 1 for ExifInterface.TAG_ORIENTATION on some Gingerbread devices

I had the orientation issue when working with ACTION_IMAGE_CAPTURE activity. I have used the TAG_ORIENTATION so that I would rotate the picture accordingly. But now we found that on some newer devices this doesn't work. In fact it returns 1 for all…
Tolga E
  • 12,188
  • 15
  • 49
  • 61
43
votes
11 answers

Image upload from iPhone strips exif data

I've built a website which allows image uploading and once an image is uploaded , some specific information about the photo is displayed. Uploading pictures from computers works just fine , the problem comes up when I'm trying to upload an image…
user975343
41
votes
4 answers

Convert JPG/GIF image to PNG in PHP?

Possible Duplicate of Convert jpg image to gif, png & bmp format using PHP I have a PHP form that allows image uploads and checks exif_imagetype(); to make sure an image is valid. However, I want all formats, PNG, JPG, JPEG, and GIF, to end up…
Aaron
  • 1,956
  • 5
  • 34
  • 56
39
votes
2 answers

Does PNG support metadata fields like Author, Camera Model, etc?

When I click on the image>property>details of a PNG image in Windows many fields are missing compared to a JPEG file. Are these fields supported in PNG? If so, how would they be added in a PNG file programmatically?
techno
  • 6,100
  • 16
  • 86
  • 192
36
votes
8 answers

reading android jpeg EXIF metadata from picture callback

Background: I am writing a camera app for a messenger program. I cannot save the captured image to persistent disk at any time. The camera must support all orientations. My implementation is that of the familiar Surfaceview examples. I use the…
Andrew G
  • 1,547
  • 1
  • 13
  • 27
32
votes
7 answers

What is the best EXIF library for .Net?

I am looking for simple straightforward solution for accessing EXIF information of jpeg images in .Net. Does anybody has experience with this?
Jakub Šturc
  • 35,201
  • 25
  • 90
  • 110
31
votes
5 answers

How to write exif metadata to an image (not the camera roll, just a UIImage or JPEG)

I am aware of how to save metadata using ALAssets. But, I want to save an image, or upload it somewhere, with exif intact. I have exif data as an NSDictionary. But how can I inject it properly into a UIImage (or probably an NSData JPEG…
akaru
  • 6,299
  • 9
  • 63
  • 102
31
votes
4 answers

exif image rotation issue using carrierwave and rmagick to upload to s3

I've got a photo upload feature in my rails app. The app uploads direct to s3 through carrierwave via rmagick and fog. The issue I am having is when a photo is uploaded via mobile through the "take a photo option" in portrait (note this is with…
lando2319
  • 1,509
  • 1
  • 19
  • 27
29
votes
6 answers

How to save GPS coordinates in exif data on Android?

I am writing GPS coordinates to my JPEG image, and the coordinates are correct (as demonstrated by my logcat output) but it appears that it's being corrupted somehow. Reading the exif data results in either null values or, in the case of my GPS:…
Brian D
  • 9,863
  • 18
  • 61
  • 96
29
votes
9 answers

Getting GPS data from an image's EXIF in C#

I am developing a system that allows for an image to be uploaded to a server using ASP.NET C#. I am processing the image and all is working great. I have managed to find a method that reads the Date Created EXIF data and am parsing it as a DateTime.…
tmutton
  • 1,091
  • 7
  • 19
  • 42
29
votes
2 answers

How to modify EXIF data in python

I am trying to edit/modify existing metadata within python 2.7. More specifically I have GPS coordinates in a my metedata, however the altitude field is incorrect. Is there a way of changing this? I have had a look at PIL piexif pyexif, but I cannot…
D.Griffiths
  • 2,248
  • 3
  • 16
  • 30