Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Extract the elevation that an image was taken at with the EXIF metadata attached to a file
ResourceFunction["ExifAltitude"][img] extracts the elevation that the input image img was taken at using its EXIF metadata. | |
ResourceFunction["ExifAltitude"][url] extracts the elevation of the image at the URL url. |
Find the elevation in meters from an image taken from Drinko Library at Marshall University (WV):
| In[1]:= | ![]() |
| Out[1]= |
Find the elevation for an image:
Find the height of an image on Wikimedia Commons:
| In[2]:= |
| Out[2]= |
Import the image from Wikimedia Commons and export it to the Wolfram Cloud in the JPEG format with the URL ymca-may-building:
| In[3]:= | ![]() |
Import the cloud object:
| In[4]:= |
| Out[4]= | ![]() |
Find the height of the image imported from the cloud:
| In[5]:= |
| Out[5]= |
Alternatively, import from the URL directly:
| In[6]:= |
| Out[6]= |
The input must be an image in order to get a result:
| In[7]:= |
| Out[7]= |
ExifHeightData returns unevaluated if the file has no EXIF height data included:
| In[8]:= |
| Out[8]= | ![]() |
Wolfram Language 13.2 (December 2022) or above
This work is licensed under a Creative Commons Attribution 4.0 International License