Select to view content in your preferred language

Getting exif information from a photo in a pop-up using arcade

277
1
Jump to solution
01-29-2025 06:07 PM
MarcusToyne
New Contributor

I am hoping someone can help me. I am trying to get exif information from photo attachments for use in a pop-up. Mainly the date the photo was taken.

I am using this code snippet, repurposed from the support site, but am not having any luck as it just returns nulls.

var features = [];
var att = attachments($feature, {metadata: True});
if (count(att) > 0) {

for (var a in att) {
push(features, att[a].exifinfo)

}}
return features;

If I change att[a].exifinfo to att[a].name, I get a result (see image). I am at a loss so any help would be greatly appreciated. Thanks

Screenshot 2025-01-30 115339.png

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
MarcusToyne
New Contributor

Turns out I needed to delve into the return a bit more .

return features[0][0]['tags'][9]['value']; does the job.

View solution in original post

0 Kudos
1 Reply
MarcusToyne
New Contributor

Turns out I needed to delve into the return a bit more .

return features[0][0]['tags'][9]['value']; does the job.
0 Kudos