GithubHelp home page GithubHelp logo

photomapcreator's Introduction

Photo Map Creator

Photo Map Creator is a small tool written in Python 3. It parses a photo directory and creates an HTML document that shows all GPS positions within an embedded map. We use OpenLayers to render maps.

Example Output

The following screenshot shows an example output. A corresponding HTML document can be found in this repository here.

alt text

Dependencies

Python 3 must be installed in order to run Photo Map Creator. Furthermore you need at least the first of the following dependencies:

  • gpsphoto: Install it via pip3 install gpsphoto piexif exifread pillow.
  • exiftool: This dependency is optional. It is only needed, if you like to process non-JPEG input images (e.g. Apple HEIC). Install it in Linux via sudo apt-get exiftool.

Usage

You can run Photo Map Creator by either CLI or GUI. The output is always written into the maps/ directory.

Command Line Interface (CLI)

python3 photo-map-creator.py OUTPUT_FILENAME GPS_LATITUDE GPS_LONGITUDE ZOOM PHOTO_DIRECTORY

The parameters are given below:

  • OUTPUT_FILENAME: Name of the output file. The postfix .html added by the tool.
  • GPS_LATITUDE: Signed decimal Latitude for the initial view. If 0.0 is given, that the latitude from the first photo is taken.
  • GPS_LONGITUDE: Signed decimal Latitude for the initial view. If 0.0 is given, that the Longitude from the first photo is taken.
  • ZOOM: Zoom value for the initial view. E.g. 15
  • PHOTO_DIRECTORY: Path to your photos.

Example:

python3 photo-map-creator.py amsterdam 52.3667 4.8945 15 /Users/andi/Pictures/2019/Amsterdam

Graphical User Interface (GUI)

Start as follows:

python3 photo-map-creator.py

The set of parameters is same as with the command line interface, but set by textfields and a directory dialog.

photomapcreator's People

Contributors

andreas-schwenk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.