rampatra / photography

A free online portfolio website to showcase your photos.
http://photography.rampatra.com
GNU General Public License v3.0
957 stars 1k forks source link

Modifying EXIF displayed? #23

Open palermog opened 6 years ago

palermog commented 6 years ago

Thanks so much for making this available!

I'm wondering if you could edit the ReadMe to provide some more information about how to modify the EXIF. It looks, from assets/js/exif.js that there are a number of options?

rampatra commented 5 years ago

Hey, what kind of modification you need in EXIF data? Isn't the EXIF data supposed to be extracted from the image?

palermog commented 5 years ago

It would be nice to be able to display, for example, focal length, capture date, or whatever else, on the image along with or instead of camera and exposure info.

On Thu, Jan 17, 2019 at 09:51 Ram notifications@github.com wrote:

Hey, what kind of modification you need in EXIF data? Isn't the EXIF data supposed to be extracted from the image?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rampatra/photography/issues/23#issuecomment-455198683, or mute the thread https://github.com/notifications/unsubscribe-auth/AYMjR7UIXn76_p1AuLnxUKluJ6q6HJ3Xks5vEI3sgaJpZM4XBKgK .

learningdotnet17 commented 5 years ago

I would like that too. We can add comments to the EXIF that show a title of the image, and/or tell a short story of the way the image was made in a few words.

And thanks for making this!

sokolj1 commented 5 years ago

I'm attempting to add the date and time that a photograph was taken to the EXIF data. I have added the following code so far to the main.js file in the gh-pages branch:

function getExifDataMarkup(img)

 if (info === "date_time") {
                    template += '<i class="fa fa-calendar-alt" aria-hidden="true"></i> ' + exif["date_time"] + '&nbsp;&nbsp;';
                }

function fetchExifData(img)

 if (EXIF.getTag(img, "DateTimeOriginal") !== undefined) {
                exifData.date_time = EXIF.getTag(img, "DateTimeOriginal");
            }

However, the date and time isn't showing up. Is there something else I need to add/modify in order for the date and time to show up in the EXIF data?

Thank you for making this Ram!

FrasSmith commented 5 years ago

I was thinking of something similar. I have updated the gulp.js to copy the full-res images into a third folder. My idea is then to add a download link to the end of the EXIF data. I did pretty much what @sokolj1 did but still can't see my addition.