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

How to stop PHP iMagick auto-rotating images based on EXIF 'orientation' data

Currently working with PHP and iMagick to develop a poster printing Web application. This is the example image I am using to test upload/image editing features of the application: The image contains the following EXIF data: [FileName] =>…
kaese
  • 10,249
  • 8
  • 29
  • 35
29
votes
3 answers

Interpreting GPS info of exif data from photo in python

I am writing a small program to get the GPS info of a iphone jpg photo. The library I am using is the PIL in python. Now I am able to get the GPSInfo, which is something like: {1: 'N', 2: ((1, 1), (20, 1), (5365, 100)), 3: 'E', 4: ((103, 1),…
fyr91
  • 1,253
  • 5
  • 17
  • 33
28
votes
1 answer

How do I save custom information to a PNG Image file in Python?

I would like to open a PNG image in Python, add some custom data to it, save the image file and at a later time open it again to retrieve the data. I am working in Python 3.7. I would prefer to use the PNG image format but could move to another…
TafT
  • 2,764
  • 6
  • 33
  • 51
28
votes
11 answers

Resize image in Python without losing EXIF data

I need to resize jpg images with Python without losing the original image's EXIF data (metadata about date taken, camera model etc.). All google searches about python and images point to the PIL library which I'm currently using, but doesn't seem to…
Einar Egilsson
  • 3,438
  • 9
  • 36
  • 47
28
votes
5 answers

Android EXIF data always 0, how to change it?

I have an app that captures photos using the native Camera and then uploads them to a server. My problem is that all the photos have an EXIF orientation value of 0, and this messes up the display elsewhere. How can I change the EXIF orientation? I'm…
Cbas
  • 6,003
  • 11
  • 56
  • 87
27
votes
3 answers

Exif data TAG_ORIENTATION always 0

I need to know the orientation of an image from the gallery (taken by the camera). My initial approach was to use MediaStore.Images.Media.ORIENTATION which was working for my Droid 1. While testing on the HTC Thunderbolt that phone only saves 0 to…
sgarman
  • 6,152
  • 5
  • 40
  • 44
27
votes
2 answers

Chrome Image EXIF Orientation Issue

I'm building a web app that shows pictures. Most of the pictures were taken by smart phones and have EXIF rotation information. I'm exposing a url which return the image blob without modification. I've notice that when I put this url in img tag…
Ido Ran
  • 10,584
  • 17
  • 80
  • 143
27
votes
6 answers

iOS PNG Image rotated 90 degrees

In my iOS application I'm writing, I deal with PNGs because I deal with the alpha channel. For some reason, I can load a PNG into my imageView just fine, but when it comes time to either copy the image out of my application (onto the PasteBoard) or…
Boeckm
  • 3,264
  • 4
  • 36
  • 41
27
votes
4 answers

Compute hash of only the core image data (excluding metadata) for an image

I'm writing a script to calculate the MD5 sum of an image excluding the EXIF tag. In order to do this accurately, I need to know where the EXIF tag is located in the file (beginning, middle, end) so that I can exclude it. How can I determine where…
ensnare
  • 40,069
  • 64
  • 158
  • 224
26
votes
8 answers

Remove EXIF data from JPG using PHP

Is there any way to remove the EXIF data from a JPG using PHP? I have heard of PEL, but I'm hoping there's a simpler way. I am uploading images that will be displayed online and would like the EXIF data removed. Thanks! EDIT: I don't/can't install…
tau
  • 6,499
  • 10
  • 37
  • 60
26
votes
3 answers

Preserve exif data of image with PIL when resize(create thumbnail)

When I try to resize (thumbnail) an image using PIL, the exif data is lost. What do I have to do preserve exif data in the thumbnail image? When I searched for the same, got some links but none seem to be working. from PIL import Image import…
Jisson
  • 3,566
  • 8
  • 38
  • 71
26
votes
4 answers

Extract thumbnail from jpeg file

I'd like to extract thumbnail image from jpegs, without any external library. I mean this is not too difficult, because I need to know where the thumbnail starts, and ends in the file, and simply cut it. I study many documentation ( ie.:…
Lay András
  • 795
  • 2
  • 9
  • 14
24
votes
2 answers

How to remove or edit Exif from mp4 video?

I recorded a Full HD video with Samsung Galaxy II, when I uploaded it to YouTube I found that it turned to 90 degrees like Portrait layout 1080x1920 NOT 1920x1080. I found the cause of the problem: YouTube is reading video metadata and rotate…
Exey Panteleev
  • 1,260
  • 3
  • 13
  • 15
24
votes
3 answers

EXIF data read and write

I searched for getting the EXIF data from picture files and write them back for Swift. But I only could find predefied libs for different languages. I also found references to "CFDictionaryGetValue", but which keys do I need to get the data? And how…
Peter Silie
  • 825
  • 1
  • 11
  • 16
23
votes
6 answers

How do I add exif data to an image?

On our site, we get a large amount of photos uploaded from various sources. In order to keep the file sizes down, we strip all exif data from the source using mogrify: mogrify -strip image.jpg What we'd like to be able to do is to insert some…
ConroyP
  • 40,958
  • 16
  • 80
  • 86