exiv2.cr
Crystal binding to libgexiv2.
Extracting EXIF,IPTC and XMP metadata in photo and video files.
Installation
-
Install
libgexiv2
:$ sudo apt install libgexiv2-dev
-
Add the dependency to your
shard.yml
:dependencies: exiv2: github: y2k2mt/exiv2.cr version: 0.1.1
-
Run
shards install
Usage
require "exiv2"
metadata = Exiv2::Metadata.new "/somewhere/image.jpg"
metadata.model # e.g. "Canon EOS 40D"
Contributing
- Fork it (https://github.com/your-github-user/exiv2.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- y2k2mt - creator and maintainer