Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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 available at gitlab.com/panoramax and panoramax.fr.
This repository only contains the Python library to read and write standardized metadata from geolocated pictures EXIF metadata. It can be used completely apart from all Panoramax components for your own projects and needs.
This tool allows you to:
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.
This library can be used both from command-line or as Python module.
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 metadata of a single picture, for example 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.
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.
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.
Copyright (c) Panoramax team 2022-2024, released under MIT license.
FAQs
GeoPicTagReader
We found that geopic-tag-reader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.