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

Is there any gem to read exif data from png images

I am uploading png images from iphone. I would like to read the gps information from the image. I am using EXIF Reader(GitHub) but it works only for gif and tiff format. Any solution to read Exif data from png images will be useful
Dhepthi
  • 453
  • 4
  • 11
5
votes
1 answer

Using CGImageProperties to get EXIF properties

I want to be able to add a text comment to the metadata of a JPEG and be able to read it back from within an iphone app. I thought this would be fairly simple as ios4 contains support for EXIF info. So I added metadata using a Windows tool called…
user930731
  • 145
  • 1
  • 3
  • 5
5
votes
3 answers

Read EXIF and determine if the flash has fired

I have been reading some EXIF data with my PHP script. I want to determine for a certain image if the flash has been used. Here are the values returned by EXIF reader 0x0 = No Flash 0x1 = Fired 0x5 = Fired, Return not detected 0x7 =…
Mladen
  • 25,578
  • 11
  • 39
  • 48
5
votes
0 answers

Get ALL exif and metadata from image

I'm using ImagePicker from Expo to import an image from the camera roll. I then want to display select exif and metadata from the image along with the photo. That works OK: const pickImage = async () => { let result = await…
Kelvin Aitken
  • 433
  • 6
  • 18
5
votes
1 answer

What was the intended usage of the EXIF 59932 (0xea1c) padding tag?

I'm doing some data analysis and finding: 59932 (0xea1c, defined as "padding") as an EXIF tag in some JPEG images. Looking it up, I see this same tag exists in the wild in numerous places. But none of these instances explain or mention the tag…
J.Todd
  • 707
  • 1
  • 12
  • 34
5
votes
2 answers

Translate Exif DMS to DD Geolocation with Python

I am using the following code to extract the geolocation of an image taken with an iPhone: from PIL import Image from PIL.ExifTags import TAGS def get_exif(fn): ret = {} i = Image.open(fn) info = i._getexif() for tag, value in…
Alfred Chiesa
  • 67
  • 2
  • 5
5
votes
2 answers

Inserting ImageUniqueID into a JPEG's EXIF data without modifying the image using .NET

I have a requirement to insert a unique ID into image files without modifying the image content – ie it’s just the metadata that I want to modify. I’m starting with the JPEG files because there is an appropriate EXIF property available:…
CrispinH
  • 1,899
  • 4
  • 23
  • 38
5
votes
0 answers

What are the unit and range of the brightness value in iOS Exif data?

I am developping a feature which read the light data around the iPhone. The code part as below. - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection…
陈健 Mark
  • 341
  • 2
  • 14
5
votes
0 answers

Get (Read) Exif data from UIImage

I already do a lot of search for that but I didn't get any proper solution. extension UIImage { func getExifData() -> CFDictionary? { var exifData: CFDictionary? = nil if let data = self.jpegData(compressionQuality: 1.0) { //if let…
Dixit Akabari
  • 2,419
  • 13
  • 26
5
votes
1 answer

Read EXIF data from HEIC photo using PHP

I want to read the EXIF data from a HEIC photo. If I run:
Terence Eden
  • 14,034
  • 3
  • 48
  • 89
5
votes
1 answer

How to extract exif data from a PNG photo?

I am on OSX, running python and trying to extra EXIF data from a large set of images in my library. I've been using Pillow so far with my JPG photos and it works like a charm. However, I stumbled on the first PNG photo I hit. I am able to view a lot…
sramij
  • 4,775
  • 5
  • 33
  • 55
5
votes
0 answers

Writing EXIF information into JPEGs with react-native

I'm looking to use react-native to capture photos from iOS and Android devices and then to record additional metadata about those images that is captured in the context of the application. One thought was to use the built in EXIF information…
Felix
  • 71
  • 7
5
votes
0 answers

Editing Photo metadata and PHAdjustmentData

The following function loads a photo, edits the exif metadata attached to it and saves it back out. The function only seems to work for photos that already have a PHAdjustmentData attached ie photos that have been edited with another application…
adamfowlerphoto
  • 2,708
  • 1
  • 11
  • 24
5
votes
1 answer

Why is my _getexif() returning None?

I have the following Python script: from PIL import Image from PIL.ExifTags import TAGS img = Image.open('/path/1.jpg') info = img._getexif() print info Why is info returned as None, although that I made sure that img has been read? Thanks.
Simplicity
  • 47,404
  • 98
  • 256
  • 385
5
votes
1 answer

how to change image file rotation status without loading it into memory

Someone told me some image file like jpg just use some bits to control the rotation status. Is there any way to change this status without loading the picture file to main memory
Xiwen
  • 253
  • 7
  • 25