GithubHelp home page GithubHelp logo

pexif's Introduction

Python EXIF parsing

pexif is a Python library for parsing and more importantly editing EXIF data in JPEG files.

This grew out of a need to add GPS tagged data to my images, Unfortunately the other libraries out there couldn't do updates and didn't seem easily architectured to be able to add such a thing. Ain't reusable software grand!

Apps

  • dump_exif.py: Output the EXIF file from a given file.
  • setgps.py: Set the GPS metadata on a file.
  • getgps.py: Get the GPS metadata from a file.
  • noop.py: This is a no-op on a jpeg file. Useful for testing images are preserved across operations using pexif. Note that the binary data will not be exact as pexif will compress unused space in the file, however running it on a file twice should end up with the same data.

Examples

  • hello.py: Add a simple description to a photo.

Status:

WARNING: This could destroy your images!! Backup your images before using.

Currently it parses files from my Canon without a problem, and is able to add a GPS tag without corrupting the rest of the image.

References

This work couldn't be done with the reference for the spec. In particular I worked to:

For the format of the Canon stuff I used:

For the format of FujiFILM make note:

Acknowledgments:

Nick Carter provided conker.jpg which is used for testing FUJIFILM exif data.

Nick Burch provided noexif.jpg which is used for testing inputs that don't have an existing EXIF segment. Nick burch also found an error in GeoTags on the S60.

Christopher Jones who inspired updating my examples to show how copying EXIF data from one jpeg to another.

Roland Klabunde who also found a bug in the GeoTag functionality.

Marcell Lengyel for adding better support for Canon g3 and FujiFilm z5fd.

Andrew Baumann for finding a bug in dealing with extended IFD sections, and supplying the timezone adjustment script.

pexif's People

Contributors

aphexcx avatar bennoleslie avatar deniscarriere avatar ed-holden avatar marcelometal avatar

Watchers

 avatar  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.