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
22
votes
5 answers

Python: Remove Exif info from images

In order to reduce the size of images to be used in a website, I reduced the quality to 80-85%. This decreases the image size quite a bit, up to an extent. To reduce the size further without compromising the quality, my friend pointed out that raw…
Sudipta
  • 4,773
  • 2
  • 27
  • 42
22
votes
3 answers

How to use PIL to resize and apply rotation EXIF information to the file?

I am trying to use Python to resize picture. With my camera, files are all written is landscape way. The exif information handle a tag to ask the image viewer to rotate in a way or another. Since most of the browser doesn't understand this…
Natim
  • 17,274
  • 23
  • 92
  • 150
22
votes
4 answers

How to retrieve EXIF information of an image in Rails

I am using Rails paperclip for displaying the images in my page. I want to know how to retrieve EXIF information of an image(like dimensions, camera model,height,width., etc).Can any one help me out??? Thanks!!!
21
votes
2 answers

How to write Exif data to image in Swift with lat long

I am trying to write EXIF data to the image but CGImageDestinationFinalize crashes: var image = info[UIImagePickerControllerOriginalImage] as! UIImage let jpeg = UIImageJPEGRepresentation(image, 1.0) var source: CGImageSource? = nil …
Inderpal Singh
  • 1,229
  • 2
  • 10
  • 13
21
votes
3 answers

Android Picasso auto rotates image

I am using Picasso to load images from the web in my application. I have noticed that some images are shown rotated by 90degrees although when I open the image in my browser I see it correctly positioned. I assume that these images have EXIF data.…
Panos
  • 7,227
  • 13
  • 60
  • 95
20
votes
3 answers

Changing "DateTaken" of a photo

I just came back from a trip to the US, and after editing all the photos, I noticed that the camera used the Israeli time zone, and not the american. There is a 7 hours time difference, so it's a big problem for me. I have 175GB of photos, but I…
user3961151
20
votes
6 answers

Reading data metadata from JPEG, XMP or EXIF in C#

I've been looking around for a decent way of reading metadata (specifically, the date taken) from JPEG files in C#, and am coming up a little short. Existing information, as far as I can see, shows code like the following; BitmapMetadata bmd =…
tsvallender
  • 2,615
  • 6
  • 32
  • 42
19
votes
4 answers

Android Save Image Exif Information goes Wrong in Marshmallow 6.0.1

In my custom camera, I need to save the orientation for a captured image. This code works perfectly for other android versions. But its not working in 6.0.1. The result which am getting is wrong after saving the attributes to image file. try { …
Ajay Venugopal
  • 1,544
  • 1
  • 17
  • 30
19
votes
5 answers

PHP exif_read_data Illegal IFD size

I'm working on an application where I fix orientation (if it is present) of jpeg files downloaded from an AWS bucket. Here you can verify that this image has exif Rotation section. I download the image with file_put_contents('/local/path/to/file',…
stuzzo
  • 1,056
  • 1
  • 15
  • 36
19
votes
1 answer

Strip EXIF data from image

How can I strip the EXIF data from an uploaded image through javascript? I am currently able to access the EXIF data using this exif-js plugin, like this: EXIF.getData(oimg, function() { var orientation = EXIF.getTag(this,…
Praxis Ashelin
  • 5,137
  • 2
  • 20
  • 46
19
votes
1 answer

extract exif orientation data from image

Possible Duplicate: Accessing JPEG EXIF rotation data in Javascript on the client side I'd need to extract the orientation EXIF data from an HTML JPEG image with Javascript. according to exiftool's documentation the orientation flag is found at…
jujule
  • 11,125
  • 3
  • 42
  • 63
18
votes
3 answers

Using ALAssetsLibrary and ALAsset take out Image as NSData

I wish to extract the image using ALAssetsLibrary and ALAsset directly in the form of a NSData object. Using a NSURL I take out the image in the following manner. NSURL *referenceURL =newURL; ALAssetsLibrary *library = [[ALAssetsLibrary alloc]…
Shishir Shetty
  • 2,021
  • 3
  • 20
  • 35
18
votes
1 answer

Android: Put GPSTimeStamp into jpg EXIF tags

I trying to set the "GPSTimeStamp" into the exif tags of an jpg via android. The documentation is pretty scarce on this one: http://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_TIMESTAMP Type is String. Constant Value:…
Redfox
  • 1,024
  • 1
  • 11
  • 28
18
votes
1 answer

How to attach EXIF metadata to a serialized Bitmap in Android?

In Android, when decoding a Bitmap from a photo on the phone, the EXIF data in the original gets lost. I am sending this Bitmap to my server via a socket and would like to re-attach the missing EXIF data to the data being sent. I have some code…
Warlax
  • 2,459
  • 5
  • 30
  • 41
18
votes
4 answers

Custom Exif Tags

I am using exiv2 to manipulate metadata in a jpeg file. I need to write more information related to image processing into the metadata. Is is possible to create Custom Exif tags other than the standard ones?
Senan
  • 411
  • 2
  • 6
  • 16