50 releases (20 stable)

new 1.9.2 Dec 12, 2024
1.9.1 Aug 30, 2024
1.9.0 Jul 26, 2024
1.7.3 Mar 19, 2024
0.1.6 Nov 26, 2020

#139 in Images

Download history 548/week @ 2024-08-22 630/week @ 2024-08-29 612/week @ 2024-09-05 697/week @ 2024-09-12 614/week @ 2024-09-19 678/week @ 2024-09-26 679/week @ 2024-10-03 637/week @ 2024-10-10 764/week @ 2024-10-17 532/week @ 2024-10-24 562/week @ 2024-10-31 512/week @ 2024-11-07 674/week @ 2024-11-14 745/week @ 2024-11-21 708/week @ 2024-11-28 984/week @ 2024-12-05

3,211 downloads per month
Used in 2 crates (via maze-serval)

MIT/Apache

5.5MB
112K SLoC

C++ 67K SLoC // 0.2% comments C 32K SLoC // 0.1% comments Rust 11K SLoC // 0.0% comments Shell 1K SLoC // 0.3% comments Batch 299 SLoC // 0.2% comments Automake 252 SLoC // 0.5% comments M4 118 SLoC // 0.7% comments Python 60 SLoC // 0.6% comments

Contains (obscure autoconf code, 18KB) external/libexpat/expat/configure.ac

XMP Toolkit bindings for Rust

CI Latest Version codecov

Adobe's Extensible Metadata Platform (XMP) is a labeling technology that allows you to embed data about a file, known as metadata, into the file itself. More information on how partners and standards are using XMP is available at the XMP website.

Key features

This XMP Toolkit crate implements a subset of the XMP metadata standard. This toolkit allows a desktop or mobile application to:

  • Parse XMP metadata found in many file formats.
  • Inspect and modify the XMP data model.
  • Embed and update XMP metadata in many file formats.

The XmpMeta struct contains most of the API functions for these features and is the best place to get started in understanding this crate.

Contributions and feedback

We welcome contributions to this project. For information on contributing, providing feedback, and about ongoing work, see Contributing.

Requirements

The toolkit requires Rust version 1.70.0 or newer. When a newer version of Rust becomes required, a new minor (1.x.0) version of this crate will be released.

Crate features

This crate comes with the following features, which you can enable via your Cargo.toml file:

  • chrono - When enabled, adds conversions between XmpDateTime and chrono::DateTime<FixedOffset>.
  • crt_static - When enabled on Windows, uses the MSVC /MT build flag to request the static version of the C runtime instead of the dynamic version. This may help with avoiding conflicts with other libraries in the overall application. (This feature has no effect on any platform other than Windows.)

None of these features are enabled by default.

Supported platforms

The toolkit has been tested on the following operating systems:

  • Windows

    • Only the MSVC build chain is supported on Windows. As discussed in #155, we would welcome a PR to enable GNU build chain support on Windows.
  • MacOS (Intel and Apple silicon)

  • Ubuntu Linux on x86 and ARM v8 (aarch64)

C++ XMP Toolkit

This crate incorporates the December 2023 version of the C++ Adobe XMP Toolkit SDK.

When a newer version of the C++ XMP Toolkit is incorporated, a new minor (1.x.0) version of this crate will be released.

Upgrading from earlier versions

This API is considered to to be stable; in other words, no further breaking changes are anticipated. For instructions on how to upgrade from various 0.x versions to 1.x, see the Upgrading guide.

Minor, non-breaking additions to the API surface may be added as the few remaining APIs in the C++ XMP_Meta, XMP_Files, and TXMPUtils interfaces are exposed. Such changes will trigger minor (1.x.0) version increments when they happen.

License

The xmp_toolkit crate is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT.

Note that some components and dependent crates are licensed under different terms; please check the license terms for each crate and component for details.

Dependencies