Crystal binding to libgexiv2.
Extracting EXIF,IPTC and XMP metadata in photo and video files.
-
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
require "exiv2"
metadata = Exiv2::Metadata.new "/somewhere/image.jpg"
metadata.model # e.g. "Canon EOS 40D"
- 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
- y2k2mt - creator and maintainer