{"id":15288498,"url":"https://github.com/niklasei/jekyll-exif-data","last_synced_at":"2025-04-13T07:49:15.827Z","repository":{"id":56878553,"uuid":"183315443","full_name":"NiklasEi/jekyll-exif-data","owner":"NiklasEi","description":"Jekyll plugin to supply websites with exif data from images","archived":false,"fork":false,"pushed_at":"2019-04-25T16:38:45.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T07:49:10.986Z","etag":null,"topics":["exif","exif-data","jekyll","jekyll-plugin","ruby-gem"],"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/NiklasEi.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-24T22:27:13.000Z","updated_at":"2025-02-12T16:15:03.000Z","dependencies_parsed_at":"2022-08-20T11:40:38.188Z","dependency_job_id":null,"html_url":"https://github.com/NiklasEi/jekyll-exif-data","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiklasEi%2Fjekyll-exif-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiklasEi%2Fjekyll-exif-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiklasEi%2Fjekyll-exif-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiklasEi%2Fjekyll-exif-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NiklasEi","download_url":"https://codeload.github.com/NiklasEi/jekyll-exif-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"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":["exif","exif-data","jekyll","jekyll-plugin","ruby-gem"],"created_at":"2024-09-30T15:49:47.636Z","updated_at":"2025-04-13T07:49:15.800Z","avatar_url":"https://github.com/NiklasEi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jekyll-exif-data\n\n[![Gem Version](https://badge.fury.io/rb/jekyll-exif-data.svg)](https://badge.fury.io/rb/jekyll-exif-data)\n\nThis Jekyll plugin adds the Liquid filter `exif`, supplying exif data to Jekyll websites. To read the data [exifr](https://github.com/remvee/exifr) is used as a dependency.\n\n## Installation\n\nAdd the plugin to your site's Gemfile:\n```ruby\ngroup :jekyll_plugins do\n  # your other jekyll plugins...\n  gem 'jekyll-exif-data', '~\u003e 0.0'\nend\n```\n\nThen run\n```bash\n$ bundle install\n```\nin your jekyll project directory. The dependency of the plugin is also automatically installed by this command.\n\n### Manual installation\nIn your terminal:\n```bash\n$ gem install jekyll-exif-data\n```\n\nThen add the plugin to your `_config` file:\n```yml\nplugins:\n  - jekyll-exif-data\n```\n\n\n\n## Usage\n```Liquid\n{{ image_path | exif: '[exif-tag]'}}\n```\n\nThe `exif` filter takes the exif tag as the argument and acts on the image (path without leading slash).\n\nExamples:\n```Liquid\n{% assign image_path = \"assets/my_image.jpg\" %}\n{{ image_path | exif: 'model'}}\n{{ \"assets/images/example.jpg\" | exif: 'date_time' | date: \"%Y\" }}\n```\n\nFor more examples of possible exif tags see [exifr](https://github.com/remvee/exifr). The argument taken by the `exif` filter is the name of the method in exifr (for deeper methods join them with a dot e.g. `gps.latitude` or `f_number.to_f`).\n\nYou can use the arguments `exif?` and `gps?` to figure out whether there is any exif/gps data for your image. The code shown below links to the location on https://www.openstreetmap.org where the image was taken and additionally provides the model of the camera used and the year.\n```Liquid\n{% capture has_exif %}{{ image-path-no-leading-slash | exif: \"exif?\" }}{% endcapture %}\n{% capture has_gps %}{{ image-path-no-leading-slash | exif: \"gps?\" }}{% endcapture %}\n{% if has_exif %}\n    Taken\n    {% if has_gps==\"true\" %}\n        \u003ca href=\"https://www.openstreetmap.org/?mlat={{ image-path-no-leading-slash | exif: 'gps.latitude' }}\u0026mlon={{ image-path-no-leading-slash | exif: 'gps.longitude' }}\u0026zoom=8\u0026layers=M\" target=\"_blank\"\u003ehere \u003c/a\u003e\n    {% endif %}\n    with a {{ image-path-no-leading-slash | exif: 'model' }}\n    in {{ image-path-no-leading-slash | exif: 'date_time' | date: \"%Y\" }}.\n{% endif %}\n```\n\nIf the exif tag exists, but there is no value saved for it an empty String is returned opposed to `nil` by exifr.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasei%2Fjekyll-exif-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklasei%2Fjekyll-exif-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasei%2Fjekyll-exif-data/lists"}