Skip to main content

Panoramax Panoramax

Panoramax is a digital resource for sharing and using 📍📷 field photos. Anyone can take photographs of places visible from the public streets and contribute them to the Panoramax database. This data is then freely accessible and reusable by all. More information is available at gitlab.com/panoramax and panoramax.fr.

📷 GeoPic Tag Reader

This repository only contains the Python library to read and write standardized metadata from geolocated pictures EXIF metadata. It can be used independently from other Panoramax components for your own projects and needs.

Features

This tool allows you to:

  • 🔍 Analyse various EXIF variables to extract standardized metadata for geolocated pictures applications (coordinates, date, orientation, altitude...)
  • ✏️ Edit a picture to change its EXIF variables through a simple command
  • 💻 Use it as either Python code or as a command-line utility

Install

The library can be installed easily, for a quick glance:

pip install geopic_tag_reader
geopic-tag-reader --help

To know more about install and other options, see install documentation.

If at some point you're lost or need help, you can contact us through issues or by email.

Usage

This library can be used from both the command-line or as a Python module.

As command-line

To see all available commands:

geopic-tag-reader --help

To read metadata from a single picture:

geopic-tag-reader read --image /path/to/my_image.jpg

To edit the metadata of a single picture, for example to change its capture date:

geopic-tag-reader write \
	--input /path/to/original_image.jpg \
	--capture-time "2023-01-01T12:56:38Z" \
	--output /path/to/edited_image.jpg

Full documentation is also available here.

As Python library

In your own script, for reading and writing a picture metadata, you can use:

from geopic_tag_reader import reader, writer, model

# Open image as binary file
img = open("my_picture.jpg", "rb")
imgBytes = img.read()
img.close()

# Read EXIF metadata
metadata = reader.readPictureMetadata(imgBytes)
print(metadata)

# Edit picture EXIF metadata
editedMetadata = writer.PictureMetadata(picture_type=model.PictureType.equirectangular, direction=writer.Direction(125))
editedImgBytes = writer.writePictureMetadata(imgBytes, editedMetadata)

# Save edited file
editedImg = open("my_new_picture.jpg", "wb")
editedImg.write(editedImgBytes)
editedImg.close()

Full documentation is also available here.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

More information about developing is available in documentation.

⚖️ License

Copyright (c) Panoramax team 2022-2024, released under MIT license.

Metadata

Release files for geopic-tag-reader 1.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geopic-tag-reader 1.11.0
File Size Uploaded Provenance Actions
geopic_tag_reader-1.11.0.tar.gz 76.5 kB Without provenance Details for geopic_tag_reader-1.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geopic-tag-reader 1.11.0
File Interpreter ABI Platform Actions
geopic_tag_reader-1.11.0-py3-none-any.whl Python 3 none any Details for geopic_tag_reader-1.11.0-py3-none-any.whl

Total release size: 229.3 kB

Release files / geopic_tag_reader-1.11.0.tar.gz

Download URL geopic_tag_reader-1.11.0.tar.gz
Size 76.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2379e7a6a19c52a081d44feebf1a87a44f4c5ec9fda2532cd8de66f71f23282c
BLAKE2b-256 checksum
How to use checksums
e7f1986181cfb2049b3d0cb6506b8b66cb32deb97d44ec429ee5174d75eebcea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / geopic_tag_reader-1.11.0-py3-none-any.whl

Download URL geopic_tag_reader-1.11.0-py3-none-any.whl
Size 152.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90df28b11d1ae5f77957643cc53896c4cd6ec56ee475ced913162b7d7ebf3e79
BLAKE2b-256 checksum
How to use checksums
8786e5924e57893f916b17376a538d6a6dc8f42485455d54ca8c605b2f455239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for geopic-tag-reader 1.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.11.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page