项目作者: Cyb3r-Jak3

项目描述 :
Python program for graphing image metadata. Repo mirrored from GitLab.
高级语言: Python
项目地址: git://github.com/Cyb3r-Jak3/MetaStalk.git
创建时间: 2019-11-11T23:36:02Z
项目社区:https://github.com/Cyb3r-Jak3/MetaStalk

开源协议:Mozilla Public License 2.0

下载


MetaStalk

GitHub Gitlab pipeline status (branch) PyPI - Python Version PyPI Code style: black

Maintainability
codecov Codacy Badge

Scrutinizer Code Quality Language grade: Python

About

MetaStalk is a tool that can be used to generate graphs from the metadata of JPEG, TIFF, and HEIC images, which are tested. More formats are supported but untested.
It currently creates graphs for:

  • GPS coordinates (map)
  • Focal Length, Camera model, Camera manufacturer, Producer information (Pie Chart)
  • Timestamp information (Chart)

Examples photos from ianare/exif-samples, exiftool, drewmpales/metadata-extractor-images.

All development is done on GitLab and mirrored to GitHub. Please read contributing.md for development.

Metastalk is supported and tested on the following Python versions:

  • 3.6
  • 3.7
  • 3.8
  • 3.9

How to use

MetaStalk is available as a package on pypi.org or you can do a source install.

  1. usage: MetaStalk [-h] [-a] [-d] [-e {pdf,svg,webp,jpeg,png,html,html_offline}]
  2. [--export-only] [--no-open] [-o OUTPUT] [-t] [-v]
  3. [files [files ...]]
  4. Tool to graph image metadata.
  5. positional arguments:
  6. files Path of photos to check.
  7. optional arguments:
  8. -h, --help show this help message and exit
  9. -a, --alphabetic Sorts charts in alphabetical order rather than the
  10. default order
  11. -d, --debug Sets logging level to DEBUG.
  12. -e {pdf,svg,webp,jpeg,png,html,html_offline}, --export {pdf,svg,webp,jpeg,png,html,html_offline}
  13. Exports the graphs rather than all on one web page
  14. --export-only Makes it so that MetaStalk only export
  15. --no-open Will only start the server and not open the browser to
  16. view it
  17. -o OUTPUT, --output OUTPUT
  18. The name of the directory to output exports to. Will
  19. be created if it does not exist. Defaults to
  20. metastalk_exports.
  21. -t, --test Does not show the graphs at the end.
  22. -v, --verbose Sets logging level to INFO

Extras

MetaStalk has extra installs available for an increased feature set.

  • metastalk[image]
    Allows for exporting charts to images in png, jpeg, webp, svg and pdf formats.

  1. pip install metastalk
  2. metastalk <Path to files>
  3. #i.e. metastalk ./ExamplePhotos/

Source Install

  1. git clone https://gitlab.com/Cyb3r-Jak3/metastalk
  2. cd metastalk
  3. setup.py install
  4. metastalk <Path to files>
  5. #i.e. metastalk ./ExamplePhotos/

Docker

There are docker images available to run Metastalk. The image only process and opens the webpage. It does not offer the option to export the results.

Images are available from both DockerHub and GitLab.

  • cyb3rjak3/metastalk:latest
  • registry.gitlab.com/cyb3r-jak3/metastalk:latest

To run:
docker run -it -v $(pwd)/ExamplePhotos:/photo:ro cyb3rjak3/metastalk

Wait until the photos have been process then open your browser to localhost:8052

Disclaimer

This is for educational/proof of concept purposes only. What you do with MetaStalk is your responsibility.

DeepSource
DeepSource