Skip to content

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

License

Notifications You must be signed in to change notification settings

commonsmachinery/tinyxmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages