Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to read EXIF data with R?

Tags:

r

exif

I need to manipulate some image files based on their EXIF data. Can something like this be done in R? I have not seen any R functions which could read EXIF data directly.

like image 920
Max C Avatar asked May 25 '12 23:05

Max C


2 Answers

The adimpro package may be useful. It maintains the EXIF data as a comment() on the imported image. (not used it myself though.)

like image 174
Gavin Simpson Avatar answered Oct 13 '22 01:10

Gavin Simpson


I could not find an R package that did it natively either, so I implemented my own at https://github.com/cmartin/EXIFr

As of now, it only reads a subset of tags I was using for a project, but I could easily extend it to suit your needs.

For example, to read the aperture value :

read_exif_tags(image_path)[["ApertureValue"]]
like image 42
Charles Martin Avatar answered Oct 12 '22 23:10

Charles Martin