Photo Metadata for random image #595
Answered
by
bpatrik
imaginator
asked this question in
Q&A
Replies: 3 comments 3 replies
-
Hi
The app only returns with the original photo.
Given that you can use any 3rd party application to parse that image and
load it's metadata.
…-- Sorry for being brief, sent from my phone.
On Thu, 19 Jan 2023, 20:21 Simon Tennant, ***@***.***> wrote:
I use pigallery2 primarily to serve up a random image as the screensaver
to my wall mounted home automation tablets
<https://github.com/imaginator/smartserver/blob/master/roles/homeassistant/templates/index.html>.
This works fantastically well.
I'd like to also show the photo's capture/digitization/whatever-date (or
any other photo metadata) Is there a method to also retrieve the metadata
for the random image or to have this returned in the header/somehow?
—
Reply to this email directly, view it on GitHub
<#595>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZKA5WGVDEJ5NRWFWOWOWDWTE5TXANCNFSM6AAAAAAUAKNMOU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
imaginator
-
There are a lot of JavaScript libraries that can read exif and iptc data.
Here is one that I'm considering using for pigallery:
https://mutiny.cz/exifr/
…-- Sorry for being brief, sent from my phone.
On Thu, 19 Jan 2023, 20:31 Simon Tennant, ***@***.***> wrote:
I'd just assumed that it wasn't possible to read EXIF data in the browser
but as you point out, it seems to be. Thanks!
—
Reply to this email directly, view it on GitHub
<#595 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZKA5S3NICTHA7I2BJE47TWTE62HANCNFSM6AAAAAAUAKNMOU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Im not familiar with that repo, but this file can be updated:
https://github.com/imaginator/smartserver/blob/master/roles/pigallery2/templates/pigallery2.imagilan.conf
The pigallery2 recommend nginx config only allows post/put to pgapi/ path
and it also enables gzip compression (that gives a significant speed up)
…-- Sorry for being brief, sent from my phone.
On Thu, 19 Jan 2023, 21:55 Simon Tennant, ***@***.***> wrote:
That's a super nice library. Thanks.
It was all going to be easy but then I discovered that nginx's image
resizing
<https://github.com/imaginator/smartserver/blob/master/roles/homeassistant/templates/ha.imagilan.conf#L13-L16>
strips the metadata. Such is software :)
—
Reply to this email directly, view it on GitHub
<#595 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZKA5UU7T23TJ3ONNANNNTWTFIVLANCNFSM6AAAAAAUAKNMOU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use pigallery2 primarily to serve up a random image as the screensaver to my wall mounted home automation tablets. This works fantastically well.
I'd like to also show the photo's capture/digitization/whatever-date (or any other photo metadata) Is there a method to also retrieve the metadata for the random image or to have this returned in the header/somehow?
Beta Was this translation helpful? Give feedback.
All reactions