{"id":15020115,"url":"https://github.com/herschel666/exif-loader","last_synced_at":"2025-10-25T01:30:27.961Z","repository":{"id":17348534,"uuid":"81720775","full_name":"herschel666/exif-loader","owner":"herschel666","description":"Extract EXIF- \u0026 IPTC-data from your JPGs during build-time.","archived":false,"fork":false,"pushed_at":"2025-01-24T20:51:20.000Z","size":2345,"stargazers_count":17,"open_issues_count":12,"forks_count":4,"subscribers_count":3,"default_branch":"KillYourMaster","last_synced_at":"2025-02-03T10:59:34.353Z","etag":null,"topics":["exif","exif-data-extraction","exif-loader","iptc","webpack","webpack-loader","webpack2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/herschel666.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null}},"created_at":"2017-02-12T11:21:15.000Z","updated_at":"2025-01-13T21:59:41.000Z","dependencies_parsed_at":"2023-10-21T03:20:35.677Z","dependency_job_id":"df4c790c-c39f-4c76-bb20-ffffb347d512","html_url":"https://github.com/herschel666/exif-loader","commit_stats":{"total_commits":513,"total_committers":6,"mean_commits":85.5,"dds":"0.42884990253411304","last_synced_commit":"73cc970c951cac612bef9ac2a2731c18cc005893"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herschel666%2Fexif-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herschel666%2Fexif-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herschel666%2Fexif-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herschel666%2Fexif-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/herschel666","download_url":"https://codeload.github.com/herschel666/exif-loader/tar.gz/refs/heads/KillYourMaster","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238053514,"owners_count":19408699,"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-extraction","exif-loader","iptc","webpack","webpack-loader","webpack2"],"created_at":"2024-09-24T19:54:36.596Z","updated_at":"2025-10-25T01:30:27.590Z","avatar_url":"https://github.com/herschel666.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EXIF-Loader\n\n\u003e Extract EXIF- \u0026 IPTC-data from your JPGs during build-time.\n\n[![Current Version](https://img.shields.io/npm/v/exif-loader.svg)](https://www.npmjs.com/package/exif-loader)\n[![install size](https://badgen.net/packagephobia/install/exif-loader)](https://packagephobia.now.sh/result?p=exif-loader)\n[![Monthly Downloads](https://img.shields.io/npm/dm/exif-loader.svg)](https://www.npmjs.com/package/exif-loader)\n[![Dependency Status](https://david-dm.org/herschel666/exif-loader.svg)](https://david-dm.org/herschel666/exif-loader)\n[![Build Status](https://travis-ci.org/herschel666/exif-loader.svg?branch=master)](https://travis-ci.org/herschel666/exif-loader)\n\n## Install\n\n```\nnpm install --save-dev exif-loader\n```\n\n## Usage\n\nYou can use the EXIF-loader as a standalone loader:\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.jpg$/,\n        use: ['exif-loader'],\n      },\n    ],\n  },\n};\n```\n\n**modules/a.js**\n\n```js\nimport { exif, iptc } from './some-image.jpg';\n\nconst { imageWidth } = exif.image;\nconst { object_name } = iptc;\n```\n\nYou can also use the load in tandem with the [file-loader](https://github.com/webpack-contrib/file-loader).\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.jpg$/,\n        oneOf: [\n          {\n            resourceQuery: /^\\?exif$/,\n            use: 'exif-loader',\n          },\n          {\n            resourceQuery: /^\\?file$/,\n            use: ['file-loader'],\n          },\n        ],\n      },\n    ],\n  },\n};\n```\n\n**modules/b.js**\n\n```js\nimport { exif, iptc } from './some-image.jpg?exif';\nimport file from './some-image.jpg?file';\n\nconst { imageWidth } = exif.image;\nconst { object_name } = iptc;\n\nexport default function () {\n  return (\n    \u003cfigure\u003e\n      \u003cimg src={file} width={imageWidth} alt=\"\" /\u003e\n      \u003cfigcaption\u003e{object_name}\u003c/figcaption\u003e\n    \u003c/figure\u003e\n  );\n}\n```\n\n## Contributing\n\nIf you stumbled upon a bug or have an idea for improvements, feel free to [open an issue](https://github.com/herschel666/exif-loader/issues).\n\nIf you want to contribute code, you're highly welcome to [open a pull-request](https://github.com/herschel666/exif-loader/pulls). Please use a feature-branch for that and make sure, the CI-test is green.\n\nThanks!\n\n## Questions\n\nI you have questions, feel free to ping me on Mastodon:\n[@Herschel_R](https://mastodon.social/@herschel_r).\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2020 Emanuel Kluge\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherschel666%2Fexif-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherschel666%2Fexif-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherschel666%2Fexif-loader/lists"}