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

Exif information under images #432

Open
tattoodgeek opened this issue Feb 5, 2021 · 4 comments
Open

Exif information under images #432

tattoodgeek opened this issue Feb 5, 2021 · 4 comments

Comments

@tattoodgeek
Copy link

I've been using galleriajs to put together an internal photo gallery at work for customer photos. Everything is working fine except this last bit of showing EXIF information for images. I was able to get it to show exif information for the first image in the gallery BUT when going through photos using the navigation arrows or carousel, the exif information is still of the first image. Not sure if there is a way to get the page to refresh per image or to get the exif information to show per image being displayed.

Thank you.

@sammik
Copy link

sammik commented Feb 5, 2021

As I know, galleria.js doesnt read EXIF data. You use some extern library for that?
Once you have data, you need, you can use it in galleria https://galleriajs.github.io/docs/references/data.html

@tattoodgeek
Copy link
Author

no external library, just used some php to pull the info and added the below under the main vid but above the gallery_list div:

        </div>
		<div class="exif" id="exif">
			<!-- pulling exif information and displaying under image -->
				<?php
					$exif = exif_read_data(($dir.'/'.$pic['big']), 0, true);{
						echo "File Name: ".$exif['FILE']['FileName']."<br>";
						echo "Date/Time Taken: ".$exif['EXIF']['DateTimeOriginal']."<br>";
					}
				?>
		</div>

It is pulling the information I want to use BUT only for the first image of the gallery. If images are changed via the carousel, it doesn't seem to be reloading any information thus not loading the EXIF info from that image.

@sammik
Copy link

sammik commented Feb 5, 2021

This doesnt tell me much. Galleria is pure frontend.

@tattoodgeek
Copy link
Author

Yes but this is what I added to the backend js to pull exif through php.

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

No branches or pull requests

2 participants