Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruzickap/raw-photo-tools-container
Repository for building container to help manage RAW photos
https://github.com/ruzickap/raw-photo-tools-container
container darktable-cli dockerfile exiftool manage photo raw tools
Last synced: 7 days ago
JSON representation
Repository for building container to help manage RAW photos
- Host: GitHub
- URL: https://github.com/ruzickap/raw-photo-tools-container
- Owner: ruzickap
- License: apache-2.0
- Created: 2022-02-13T19:15:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-12T02:58:26.000Z (21 days ago)
- Last Synced: 2025-01-12T03:27:28.965Z (21 days ago)
- Topics: container, darktable-cli, dockerfile, exiftool, manage, photo, raw, tools
- Language: Dockerfile
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# raw-photo-tools-container
[![Container build](https://github.com/ruzickap/raw-photo-tools-container/actions/workflows/container-build.yml/badge.svg)](https://github.com/ruzickap/raw-photo-tools-container/actions/workflows/container-build.yml)
Repository for building container to help manage RAW photos.
* darktable
* exiftoolContainer registry:
Example:
```bash
docker run --rm -it --volume="${PWD}:/mnt" quay.io/petr_ruzicka/raw-photo-tools shdarktable-cli --verbose "20221014-203700.arw" "20221014-203700.jpg" \
--core --conf plugins/imageio/format/jpeg/quality=95
```Complex example:
```bash
#!/usr/bin/env shset -euxo pipefail
docker run --rm -i --user "$(id -u "${USER}"):$(id -g "${USER}")" -v "${PWD}:/mnt" --workdir="/mnt" quay.io/petr_ruzicka/raw-photo-tools:latest /bin/sh << \EOF
for XMP_FILE in *.xmp; do
RAW_FILE=$(exiftool -DerivedFrom $XMP_FILE | sed -e 's/^Derived From\s*:\s\(.*\)/\1/')
RAW_FILE_NAME="${XMP_FILE%.*}"
FILE_NAME="${RAW_FILE%.*}"echo "*** ${XMP_FILE} [${RAW_FILE}] [${FILE_NAME}]"
if [ "${RAW_FILE_NAME}" != "${RAW_FILE}" ]; then
echo "Raw file name mentioned in xmp (xmpMM:DerivedFrom) file does not match the raw file taken from \"$RAW_FILE_NAME\" !"
exit 1
fitest -f "${RAW_FILE}" || ( echo "${RAW_FILE} does not exists !"; exit 2 )
if [ ! -f "${FILE_NAME}.jpg" ]; then
darktable-cli --verbose "${RAW_FILE}" "${XMP_FILE}" "${FILE_NAME}.jpg" --core --conf plugins/imageio/format/jpeg/quality=95
exiftool '-filename