Created
June 4, 2025 14:04
-
-
Save moorchegue/c546d9b535820aa95765de134dd38543 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
"use strict"; | |
window.onload=getExif; | |
function getExif() { | |
var imgs = document.getElementsByTagName("img"); | |
for (var i=0; i<imgs.length; i++) { | |
let img = imgs[i]; | |
EXIF.getData(img, function() { | |
var meta = EXIF.getAllTags(this); | |
img.title = `Artist: ${meta.Artist} | |
Camera: ${meta.Model} | |
Lens: ${meta.undefined} | |
Aperture: f${meta.FNumber} | |
Exposure: ${meta.ExposureTime?.numerator}/${meta.ExposureTime?.denominator} | |
ISO: ${meta.ISOSpeedRatings} | |
${meta.ImageDescription}` | |
.replace(/(\n)\s+/g, "$1"); | |
}); | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment