Coder Social home page Coder Social logo

eirki / tinyxmp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from commonsmachinery/tinyxmp

0.0 1.0 0.0 13 KB

Pure Python module for reading and writing metadata as raw XMP packets in various file formats.

License: MIT License

Python 100.00%

tinyxmp's Introduction

tinyxmp

tinyxmp is a pure Python module for reading and writing metadata as raw XMP packets. It is designed to have very few external dependencies making it easily portable across platforms, server installations, etc.

Installation

pip install https://github.com/commonsmachinery/tinyxmp/tarball/master

Usage

import tinyxmp
x = tinyxmp.Metadata.load("webcam.png")
x.get_xmp()
x.write_xmp(xml_string)

Supported formats

  • JPEG (JFIF)
  • PNG

Known limitations and TODOs

Extended XMP packets in JPEG are not supported. Trying to write an XMP packet longer than 65502 bytes will result in exception.

Files are not locked while writing metadata.

tinyxmp's People

Contributors

artfwo avatar zougloub avatar jonasob avatar

Watchers

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