Coder Social home page Coder Social logo

sichengyang / java-jpeg-exif-geotag-editor Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 57.75 MB

This is a program that can read JPEG/JPG EXIF data and edit the associate GPS data.

License: Creative Commons Zero v1.0 Universal

Java 100.00%
java metadata-editor jpeg-image junit exif-metadata exiftool-library

java-jpeg-exif-geotag-editor's Introduction

Java JPEG Exif GeoTag Editor

Description

  • This is a Java library that can let user scan jpeg/jpg exif, report all tags, and change or remove geotag.
  • This project offers App.java which can process all images in assets and a command line tool. For the instruction, please see the content below.
  • Project that use this library: https://github.com/tahaafzal5/AugieGeoTag

Functions

  • This library offers Jpeg which can parse jpeg/jpg and find exif raw data.
  • This library offers JpegExif can scan the exif data and report to users.
  • This library offers JpegOutputSet which can let user customize geotag (remove or update).

Download

git clone https://github.com/SichengYang/Java-JPEG-Exif-GeoTag-Editor.git

Compile Instruction

javac -d bin -cp .:./lib/hamcrest-core-1.3.jar:./lib/junit-4.13.2.jar --module-path <your javafx library path> --add-modules javafx.controls */*.java */*/*.java

Running Instruction

  • Run App
java -cp bin App
  • Run Tool
java -cp bin Tool <command>
  • Run JUnit Test
java -cp .:bin:./lib/hamcrest-core-1.3.jar:./lib/junit-4.13.2.jar tests.<a test runner>
  • Run JavaFX Progrma Editor
java -cp bin --module-path <your javafx library path> --add-modules javafx.controls Editor

Tool Command Instruction

command type:

-m remove for remove geotag, update for update geotag, verify for verify whether file is a jpeg, and print to print geotag (required)

-i name of input file or folder in assets folder. It could also be "." means process all images under assets (required)

-la latitude as a String (required when you select to update geotag)

-lo longitude as a String (required when you select to update geotag)

-help print help menu

Note: flag order does not matter

  • remove geotag command sample:
-m remove -i <file path under assets>
  • update geotag command sample:
-m update -i <file path under assets> -la <latitude> -lo <longitude>
  • print geotag command sample:
-m print -i <file path under assets>
  • verify jpeg command sample:
-m verify -i <file path under assets>
  • print all tag command sample:
-m tag -i <file path under assets>
  • print help menu:
-help

Geotag Support Format

  • 100 30 20.99 N
  • 100 40.99 S
  • 100.88 W
  • 100 30 20.99 (you can type in positive or negative to represent the direction)
  • -100 -30 -20.99
  • 100 40.99
  • -100 -40.99
  • 100.88
  • -100.88

License

Sample Usage

Import Guide

  • import jpeg.*;

Test Files

  • Pease go to folder tests under src

java-jpeg-exif-geotag-editor's People

Contributors

sichengyang avatar

Stargazers

 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.