Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

exif_gps_injector

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exif_gps_injector

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Exif GPS Injector

Add GPS exif tags to images/videos based on a kml file

Installation

  gem install exif_gps_injector

Usage

Command line

Copy images and kml to the same folder:

❯❯❯ exif_gps_injector --help
Usage: exif_gps_injector [options]
        --fallback-location LOCATION Fallback to this location if can't locate on kml files eg: '-42.0000 -10.0000 0'
        --gps-refs REFS              Default South/West
        --input-dir INPUT_DIR        Directory to read media files, default to ./
        --kml-dir KML_DIR            Directory to read the kml files, default to ./
        --replace-original-files     Default to false
❯❯❯ exif_gps_injector --replace-original-files
23 files found                                                                                                                                       |
2621 location points

Injecting: |=========================================================================================================================================|

 Finished!

Ruby

  kml = ExifGpsInjector::Kml.new(dir: options[:kml_dir])
  kml.locate_at('2015-01-01 12:00') => '-42.000 -10.000 0'

  media = ExifGpsInjector::Media.new('./image.jpg')
  media.original_date_time  => '2015-01-01 12:00'
  media.location = { gps_latitude: '-10.000', gps_longitude: '-42.000', gps_altitude: 0 }

License

MIT License. Copyright 2016 Jhimy Fernandes Villar.

FAQs

Package last updated on 15 Jan 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc