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

Extract EXIF data from an image blob (binary string) in PHP

The PHP function exif_read_data() requires a filename for input, however I only have the image data in a string (such that I can use imagecreatefromstring()) and I can not write it to a temp file. How do I extract EXIF information without writing…
rymo
  • 3,285
  • 2
  • 36
  • 40
13
votes
3 answers

How to write CUSTOM metadata into JPEG with Python?

How to write CUSTOM metadata into JPEG with Python? I tried import piexif exif_dict = { 'uwi': myvalue1, 'activity_type': myvalue2, 'prediction': myvalue3, 'url_current': myvalue4, …
Dims
  • 47,675
  • 117
  • 331
  • 600
13
votes
3 answers

Modify or Delete Exif tag 'Orientation' in Python

I need some of my pictures to be displayed with the same orientation whether the software reads the exif data or not. One solution (the only one that could fit actually) would be to rotate the image according to the exif tag if it exists and then…
Depado
  • 4,811
  • 3
  • 41
  • 63
13
votes
1 answer

How to convert an image object to a binary blob

Is it possible to parse an image object () in the DOM as if it had been uploaded and opened with FileReader? I am trying to use jpegmeta.js to extract EXIF metadata from JPEGs, but it needs binary strings which are returned by the…
user1823085
  • 141
  • 1
  • 1
  • 6
12
votes
1 answer

ExifTool - How to remove all metadata from all files possible inside a folder and all its subfolders?

How can I remove all the metadata from all the files inside a folder and its subfolders? I've already tried several commands without any success. All of them were tied to a specific file extension and/or didn't go through all the subfolders inside.
user12052742
12
votes
2 answers

Image rotation on input type="file"

I am using react-firebase-file-uploader to upload an avatar to firebase storage. However, any time I upload an image of Portrait Orientation (specifically, images taken on Android and IOS devices - they tend to have OrientationRotate 90 CW in their…
Darren
  • 2,176
  • 9
  • 42
  • 98
12
votes
2 answers

Variable seems to not get set on mobile devices

I'm reading an image file and rescaling it to send it to a server. In order to properly rescale it I need to change the orientation, since some pictures are taken with a mobile device camera. In order to do this rotation I did the following using…
FredTheDino
  • 121
  • 2
12
votes
2 answers

Invalid SOS parameters for sequential JPEG

I' am getting this error when use imagecreatefromjpeg function. Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Invalid SOS parameters for sequential JPEG in C:\wamp\www\test\index.php on line 7 I researched, with this commands…
tyasird
  • 926
  • 1
  • 12
  • 29
12
votes
4 answers

C#: Converting byte[] to UTF8 encoded string

I am using a library called EXIFextractor to extract metadata information from images. This lib in part is using System.Drawing.Imaging.PropertyItem to do all the hard work. Some of the data in PropertyItem, such as Image Details etcetera, are…
dotmartin
  • 531
  • 1
  • 4
  • 25
12
votes
3 answers

How to write exif data to image in Android?

I'm trying to write a User_Comment and TAG_GPS to a captured image in an Android application using the exif interface, but for some reason the tags don't seem to be appended to the image when I view the image's details in the gallery. It seems that…
Brian Var
  • 6,029
  • 25
  • 114
  • 212
12
votes
1 answer

Metadata (EXIF, TIFF, etc.) in Photokit

In iOS 8, with the new PhotoKit, the way to create a new image is with -[PHPhotoLibrary performChanges:completionHandler], in this way: [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetChangeRequest *changeRequest =…
Roadrunner-EX
  • 824
  • 11
  • 23
12
votes
1 answer

Is there a javascript mechanism to modify EXIF metadata information of Image?

I am looking for a JavaScript mechanism to modify the image EXIF metadata info, I found plenty of JS libraries that allow me to retrieve EXIF info, but none that modify. I am looking to modify EXIF orientation information for the image, then save…
Dinesh Babu
  • 144
  • 2
  • 6
12
votes
8 answers

Android image selected from gallery Orientation is always 0 : Exif TAG

When I pick an image from gallery to set it on my imageview in android application then I see that it comes inverted by 180 or 270 or 90 degress. So to check/solve this I used EXIF orientations, but it always gives me "0". I am not able to get what…
Gaurav Arora
  • 8,282
  • 21
  • 88
  • 143
12
votes
3 answers

Write/Geotag JPEGs (EXIF data) in Android

What I want to do: Take a picture using my own PictureActivity* and add EXIF (geotags) data *: Implementing SurfaceHolder.Callbackand using Camera What is not working: Adding the EXIF GPS data What I've tried: Using the ExifInterface and manually…
MSurrow
  • 1,183
  • 2
  • 9
  • 23
11
votes
3 answers

Extract IPTC information from JPEG using Javascript

I'm trying to extract IPTC photo caption information from a JPEG file using Javascript. (I know I can do this server-side, but I'm looking specifically for a Javascript solution.) I found this script, which extracts EXIF information ... but I'm not…
jawns317
  • 1,726
  • 2
  • 17
  • 26