This package natively reads EXIF tags from digital images. It does not rely on any external libraries or binary executables.
To keep things as simple as possible for the beginning, only the following tags are currently available :
All values are returned as provided in the image file, so for example ExposureTime is "1/3200" and not 0.0003125
N.B. A utility function is provided to convert from the rational format rational_to_numeric("1/3200")
library(devtools) devtools::install_github("cmartin/EXIFr")
library(EXIFr) # To list all tags : image_path = system.file("extdata", "preview.jpg", package = "EXIFr") read_exif_tags(image_path) # To view the value of a specific tag read_exif_tags(image_path)[["ApertureValue"]] # or rational_to_numeric(read_exif_tags(image_path)[["ApertureValue"]])
The following resources were particularly useful :
Please report any bugs to the GitHub issue tracker and write any questions to charles.martin1@uqtr.ca
If this code is useful to you, please cite as :
cat(citation("EXIFr")$textVersion)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.