{"id":18510758,"url":"https://github.com/envato/exiv2","last_synced_at":"2025-12-28T17:56:00.466Z","repository":{"id":1340294,"uuid":"1286285","full_name":"envato/exiv2","owner":"envato","description":"A simple wrapper around exiv2","archived":false,"fork":false,"pushed_at":"2024-02-17T07:05:29.000Z","size":95,"stargazers_count":25,"open_issues_count":5,"forks_count":17,"subscribers_count":91,"default_branch":"master","last_synced_at":"2025-03-23T23:34:08.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/envato.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2011-01-24T01:51:35.000Z","updated_at":"2023-05-01T11:56:06.000Z","dependencies_parsed_at":"2024-01-05T07:29:36.318Z","dependency_job_id":"50cf8efe-cd2b-4b01-8a4f-126c9051b52a","html_url":"https://github.com/envato/exiv2","commit_stats":{"total_commits":76,"total_committers":15,"mean_commits":5.066666666666666,"dds":0.868421052631579,"last_synced_commit":"ecc8349f700d0b98cf5bfef56f918e55ad4e2fe4"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envato%2Fexiv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envato%2Fexiv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envato%2Fexiv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envato%2Fexiv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/envato","download_url":"https://codeload.github.com/envato/exiv2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247615398,"owners_count":20967183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T15:24:55.563Z","updated_at":"2025-12-28T17:56:00.460Z","avatar_url":"https://github.com/envato.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exiv2\n\n[![License MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/envato/exiv2/blob/master/LICENSE)\n[![Gem Version](https://img.shields.io/gem/v/exiv2.svg?maxAge=2592000)](https://rubygems.org/gems/exiv2)\n[![Gem Downloads](https://img.shields.io/gem/dt/exiv2.svg?maxAge=2592000)](https://rubygems.org/gems/exiv2)\n[![Build Status](https://github.com/envato/exiv2/actions/workflows/test.yml/badge.svg)](https://github.com/envato/exiv2/actions/workflows/test.yml)\n\nA simple wrapper around the C++ Exiv2 libary for reading and writing image metadata.\n\nSee http://www.exiv2.org/\n\nRequires that the exiv2 C++ library is installed.\n\n## Usage\n\n```\ngem install exiv2\n```\n\nIf you are on new version of Command Line Tool (that is newer than 6.2, and bump into following error:\n\n```\n/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found\n#include \u003c__debug\u003e\n```\n\nYou can follow the quick hack by touching a new file `/Library/Developer/CommandLineTools/usr/include/c++/v1/__debug` with content:\n\n```\n#ifndef _LIBCPP_ASSERT\n#define _LIBCPP_ASSERT(...) ((void)0)\n#endif\n```\n\nOnce everything is successfully installed, you can give it a go:\n\n```ruby\nrequire 'exiv2'\nimage = Exiv2::ImageFactory.open(\"image.jpg\")\nimage.read_metadata\nimage.iptc_data.each do |key, value|\n  puts \"#{key} = #{value}\\n\"\nend\nimage.exif_data.each { ... }\nimage.xmp_data.each { ... }\n\niptc_data_hash  = image.iptc_data.to_hash\nxmp_data_hash   = image.xmp_data.to_hash\n\nimage.exif_data.delete(\"Exif.Image.Software\")\nimage.iptc_data.delete_all(\"Iptc.Application2.Keywords\")\n\nimage.iptc_data[\"Iptc.Application2.Caption\"] = \"A New Caption\"\nimage.iptc_data.add(\"Iptc.Application2.Keywords\", \"fishy\")\n\nimage.write_metadata\n```\n\n## Why?\n\nNone of the existing Ruby libraries for reading and writing image metadata did quite what\nwe wanted, so we figured it wouldn't be too hard to wrap enough of Exiv2 to\nmeet our needs.\n\nThe intention is to just mirror the Exiv2 API in Ruby, so the path to extending\nthis to support more of Exiv2's functionality should be straightforward. Patches\nare welcome.\n\n## Compatibility\n\nTested on 2.7.x, 3.0.x, 3.1.x and 3.2.x with Exiv2 0.27.1 and 0.28.0.\n\n## Developing\n\n- Fork the project.\n- Make your feature addition or bug fix.\n- Add tests for it. This is important so I don't break it in a\n  future version unintentionally.\n- Commit, do not mess with rakefile, version, or history.\n  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\n- Send me a pull request. Bonus points for topic branches.\n\n## Status\n\nIn early development. Very little of Exiv2's API is supported, and it hasn't\nbeen heavily tested.\n\n## Contributors\n\nPete Yandell, Mark Turnley, Lucas Parry, Norbert Wojtwoicz, Jan Graichen, John Barton\n\n## Copyright\n\nCopyright (c) 2014 Envato \u0026 Pete Yandell. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvato%2Fexiv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenvato%2Fexiv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvato%2Fexiv2/lists"}