Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make EXIF data displayed configurable #44

Closed
wants to merge 1 commit into from
Closed

Make EXIF data displayed configurable #44

wants to merge 1 commit into from

Conversation

Niduroki
Copy link

Closes #11 via EXIF UserComment and Closes #23

I only tested this with my own site, but it works well enough over there.
I didn't really test anything but the default so it might break if one were to put loads of stuff into the exif-data footer and/or has an exif user-comment that is pretty long.
People will just have to figure it out I guess.

Closes #11 via EXIF UserComment and
Closes #23
@Niduroki Niduroki closed this by deleting the head repository Apr 19, 2023
Copy link
Owner

@rampatra rampatra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. If you reopen this pull request, I can merge it.


# Config which exif data to display
# Tag is the actual exif tag, icon is a fontawesome icon. Use JSON notation without line breaks
exif_display: '[{"tag": "Model", "icon": "camera-retro"}, {"tag": "FNumber", "icon": "dot-circle-o"}, {"tag": "ExposureTime", "icon": "clock-o"}, {"tag": "ISOSpeedRatings", "icon": "info-circle"}]'
Copy link
Owner

@rampatra rampatra Apr 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a better name would be exif_tags instead of exif_display.

@@ -307,46 +307,18 @@
});

function getExifDataMarkup(img) {
var exif = fetchExifData(img);
var exif_display = $('#main').data('exif-display');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@@ -16,7 +16,7 @@ <h1><a href="index.html"><strong>{{ site.header.title }}</strong> {{ site.header
</header>

<!-- Main -->
<div id="main">
<div id="main" data-exif-display='{{ site.exif_display }}'>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here.

@Niduroki
Copy link
Author

If you (after 3,5 years of no comment) still care about this PR feel free to copy the provided code and merge it yourself.

This PR can be considered as MIT-licensed, thus do what you want with the code.
There is no way of reopening this PR, since I have deleted the original repo.

@rampatra
Copy link
Owner

I am not sure how but I missed this PR. I didn't get an email about this PR in my inbox. Anyway, thanks for your comment, I'll add it to the repo.

Thanks again for your time.

@rampatra
Copy link
Owner

Changes added to master!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modifying EXIF displayed? Descriptions on photos (?)
2 participants