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

Can you provide a brief how-to for developers (see examples) #437

Open
scoot-git opened this issue Jan 13, 2025 · 1 comment
Open

Can you provide a brief how-to for developers (see examples) #437

scoot-git opened this issue Jan 13, 2025 · 1 comment

Comments

@scoot-git
Copy link

Loving my new Pi5 digital pictureframe. I'd like to add some addtional features to the software. I'm a long time programmer and can more or less get around in Python.

  1. I want to retrieve more of the tags/metadata on a picture. For example, on paintings I've populated Authors. For all I know, all metadata is retrieved and sitting there and I just need to get it into the proper structures. I'm looking for some guidance as to where I need to make changes to do this.

  2. Return more values about the current picture via MQTT. Looking for the same, some guidance.

@helgeerbe
Copy link
Owner

Hi @scoot-git,

for playing around with metadata. Exiftool (https://exiftool.org) might be helpful. It's like a swiss knife for image metadata. But be aware, there is only a limited set on meta-infos which is used by alle camera manufactures.

  1. In picframe you will find all meta data handling in get_image_meta.py
  2. In configuration.ymlyou find the list of actual supported Keys. So you could extent get_image_meta.py and add the key in 'configuration.yml'. It should be exported by mqtt.
image_attr: [                           # image attributes send by MQTT, Keys are taken from exifread library, "PICFRAME GPS" is special to retrieve GPS lon/lat, "PICFRAME LOCATION" is special to retrieve geo reverse (load_geoloc hast to be True)
    "PICFRAME GPS",
    "PICFRAME LOCATION",
    "EXIF FNumber",
    "EXIF ExposureTime",
    "EXIF ISOSpeedRatings",
    "EXIF FocalLength",
    "EXIF DateTimeOriginal",
    "Image Model",
    "Image Make",
    "IPTC Caption/Abstract",
    "IPTC Object Name",
    "IPTC Keywords"]

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