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.

1690 questions
164
votes
12 answers

JS Client-Side Exif Orientation: Rotate and Mirror JPEG Images

Digital camera photos are often saved as JPEG with an EXIF "orientation" tag. To display correctly, images need to be rotated/mirrored depending on which orientation is set, but browsers ignore this information rendering the image. Even in large…
flexponsive
  • 5,516
  • 6
  • 23
  • 36
144
votes
10 answers

How to remove EXIF data without recompressing the JPEG?

I want to remove the EXIF information (including thumbnail, metadata, camera info... everything!) from JPEG files, but I don't want to recompress it, as recompressing the JPEG will degrade the quality, as well as usually increasing the file…
Denilson Sá Maia
  • 40,640
  • 31
  • 100
  • 109
143
votes
9 answers

In Python, how do I read the exif data for an image?

I'm using PIL. How do I turn the EXIF data of a picture into a dictionary?
TIMEX
  • 217,272
  • 324
  • 727
  • 1,038
130
votes
8 answers

Accessing JPEG EXIF rotation data in JavaScript on the client side

I'd like to rotate photos based on their original rotation, as set by the camera in JPEG EXIF image data. The trick is that all this should happen in the browser, using JavaScript and . How could JavaScript access JPEG, a local file API…
Mikko Ohtamaa
  • 69,174
  • 40
  • 208
  • 346
108
votes
6 answers

Does PNG contain EXIF data like JPG?

I was wondering if PNG contains data like the following? What I did was to convert the jpg file to png format, and I was expecting to retrieve the same info I had on the jpg as below: Currently using this as3 library to read the data. IDF0--- IDF…
user1004413
  • 2,239
  • 6
  • 17
  • 30
108
votes
12 answers

Exif manipulation library for python

I'm looking for good exif (Exchangeable image file format) manipulation library for python. I prefer flexibility (e.g., ability to retrieve providers' proprietary tags) than processing speed. What would you suggest?
oo_olo_oo
  • 2,725
  • 5
  • 26
  • 25
89
votes
2 answers

Detect EXIF Orientation and Rotate Image using ImageMagick

Canon DSLRs appear to save photos in landscape orientation and uses exif::orientation to do the rotation. Question: How can imagemagick be used to re-save the image into the intended orientation using the exif orientation data such that it no longer…
Nyxynyx
  • 52,075
  • 130
  • 401
  • 707
78
votes
12 answers

PHP read_exif_data and Adjust Orientation

I am using the following code to rotate an uploaded jpeg image if the orientation is off. I am only having problems with images uploaded from iPhones and Android. if(move_uploaded_file($_FILES['photo']['tmp_name'], $upload_path . $newfilename)){ …
Jeff Thomas
  • 4,540
  • 11
  • 36
  • 56
77
votes
8 answers

How to get the EXIF data from a file using C#

I would like to write a small program in C# which goes through my jpeg photos and, for example, sorts them into dated folders (using MY dating conventions, dammit...). Does anyone know a relatively easy way to get at the EXIF data such as Date And…
Joel in Gö
  • 7,042
  • 6
  • 45
  • 76
56
votes
18 answers

UIImagePickerController and extracting EXIF data from existing photos

It's well known that UIImagePickerController doesn't return the metadata of the photo after selection. However, a couple of apps in the app store (Mobile Fotos, PixelPipe) seem to be able to read the original files and the EXIF data stored within…
tomtaylor
  • 2,299
  • 1
  • 22
  • 32
55
votes
9 answers

Problem setting exif data for an image

I'm using the new ImageIO framework in iOS 4.1. I successfully retrieve the exif metadata using the following: CFDictionaryRef metadataDict = CMGetAttachment(sampleBuffer, kCGImagePropertyExifDictionary , NULL); Reading it out, it appears valid.…
akaru
  • 6,021
  • 8
  • 58
  • 99
55
votes
5 answers

Android image resizing and preserving EXIF data (orientation, rotation, etc.)

If your Android app uses the device camera to take a picture and then resizes it (this is very, very common to reduce the size for upload), you might not realize that this resize operation strips the Exif metadata. This can cause problems,…
Mike Repass
  • 6,528
  • 4
  • 33
  • 33
53
votes
6 answers

Get Exif data from UIImage - UIImagePickerController

How can we get Exif information from UIImage selected from UIImagePickerController? I had done much R&D for this and got many replies but still failed to implement this. I had gone through this this and this link Please help me to solve this…
Mehul Mistri
  • 14,844
  • 14
  • 66
  • 94
53
votes
12 answers

PHP extract GPS EXIF data

I would like to extract the GPS EXIF tag from pictures using php. I'm using the exif_read_data() that returns a array of all tags + data : GPS.GPSLatitudeRef: N GPS.GPSLatitude:Array ( [0] => 46/1 [1] => 5403/100 [2] => 0/1 ) GPS.GPSLongitudeRef:…
Kami
  • 5,713
  • 8
  • 36
  • 50
52
votes
7 answers

Is there a way to tell browsers to honor the jpeg exif orientation?

I know that the automatic rotation of JPG files is disabled in browsers. They can not enable it because it would break the layout of some websites. Is there a CSS property? or javascript code to achieve that? or something else? or maybe the solution…
Marc MAURICE
  • 1,531
  • 1
  • 11
  • 9
1
2 3
99 100