Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

EXIF data extraction app for Mayan EDMS.

Project description


Mayan EDMS app that extracts image documents’ EXIF data.


This project is open sourced under the MIT License.


  • Activate the virtualenv where you installed Mayan EDMS.

  • Install from PyPI:

    pip install mayan-exif

In your settings/ file add exif to your INSTALLED_APPS list:


Run the migrations for the app: migrate


EXIF_BACKEND: Specifies the backend used to extract the EXIF data, default: exif.backends.exiftool.EXIFTool.


EXIF data is extracted automatically upon initial document upload or version uploads. The EXIF data is available via the .exif_value_of. accessor of the document version model. Example:

{{ document.exif_value_of.FileType }}


{{ document.latest_version.exif_value_of.FileType }}

returns the ‘PNG’ string for PNG image files. This accessor can be used anywhere template expressions are used: indexing, smart links, etc.


Clone repository in a directory outside of Mayan EDMS:

git clone

Symlink the app into your Mayan EDMS’ app folder:

ln -s <repository directory>/exif/ <Mayan EDMS directory>/mayan/apps

In your settings/ file add exif to your INSTALLED_APPS list:


Run the migrations for the app:

./ migrate

EXIF Backends are just a class with a single method called execute which receives a document version instance and returns a dictionary of EXIF tags with their corresponding values. The default backend calls exiftool using the JSON parameter and then turn that JSON result into a Python dictionary:

class EXIFTool(object):
    def execute(self, document_version):
        new_file_object, temp_filename = tempfile.mkstemp()

            result = exiftool(temp_filename)
            return json.loads(result.stdout)[0]

1.0.0 (2015-12-22)

  • Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mayan-exif, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size mayan_exif-1.0.0-py2-none-any.whl (14.2 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size mayan-exif-1.0.0.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page