diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..268f9c3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ +MIT No Attribution + +Copyright (c) 2025 Antoine + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..9811b6f --- /dev/null +++ b/README.md @@ -0,0 +1,43 @@ +# json-to-metadata + +Script Python pour écrire les métadonnées EXIF dans des photos argentiques numérisées, à partir d'un fichier JSON généré par [Exif Notes](https://github.com/tommi1hirvonen/ExifNotes). + +## Prérequis + +- Python 3.11+ +- [exiftool](https://exiftool.org/) + +## Installation + +```bash +git clone +cd json-to-metadata +python -m venv venv +source venv/bin/activate +pip install -e . +``` + +## Utilisation + +```bash +python -m json_to_metadata roll.json -d ./images +``` + +### Options + +| Option | Description | +|--------|-------------| +| `-d, --directory` | Répertoire des images (défaut : même que le JSON) | +| `-v, --verbose` | Mode verbeux | +| `--dry-run` | Affiche les actions sans les exécuter | +| `--force-xmp` | Force la création de fichiers XMP sidecar | +| `--set-file-date` | Modifie la date des fichiers selon la prise de vue | + +## Formats supportés + +- **EXIF intégré** : TIFF, JPEG +- **XMP sidecar** : AVIF, HEIC, WebP, autres formats + +## Licence + +[MIT-0](LICENSE) diff --git a/pyproject.toml b/pyproject.toml index 9acf1fb..b831650 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ version = "0.1.0" description = "Script de gestion des métadonnées EXIF pour photos argentiques" readme = "README.md" requires-python = ">=3.11" -license = {text = "MIT"} +license = {text = "MIT-0"} authors = [ {name = "Antoine"} ]