Code Monkey home page Code Monkey logo

exifyay's Introduction

exifyay

Yay, Exif! This module provides routines for reading and writing Exif data in Python, backed by strong and time-tested C libraries.

The bindings are generated by Cython and we use static linking to produce a self-contained Python C module.

Sources

libexif and libjpeg are based on version 0.6.21. We have removed some i18n related stuff and added a GPS routine from the same source where JpegEncoderEXIF comes from.

JpegEncoderEXIF uses libexif and provides a higher-level interface to set Exif data. We have added a function to unset tags and have extended the GPS support.

libexif performs the heavy lifting that lets us read and write Exif data. libjpeg is part of the exif tool closely related to libexif.

libexif and libjpeg use autotools, we use CMake because Simon could not figure out how to cleanly build static libraries that work both on OS X and Linux.

Build

cmake .
make
python setup.py install

To build you must have CMake, make, gcc, g++, Python headers, and Cython installed.

Install using pip

You can install exifyay using pip but you must still have the build requirements installed. To create binary distrbutions, you may want to have a look at fpm.

Check for memory leaks

We use Valgrind and Python built with --with-valgrind on test scripts and make sure that no directly nor indirectly lost memory is reported. Possibly lost memory is reported, however, but our sanity check is to remove all libexif unref calls and such and verify that the possibly lost memory value is unchanged.

Correctness

We verify that running the same operations on the same data more than once do not change it. We also verify that outputs can be parsed with tools like ExifTool

Contributors

Licenses

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.