Skip to content

Commit

Permalink
chore: set mwg image tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sethfischer committed Feb 16, 2024
1 parent a485044 commit 6e6cab9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ _build/open-graph-card/open-graph-card.svg: _build/open-graph-card/final-assembl
_build/open-graph-card/open-graph-card.png: _build/open-graph-card/open-graph-card.svg
cairosvg --unsafe $< -o $@
optipng $@
./exif-tags.sh $@
./image-meta.sh $@
20 changes: 12 additions & 8 deletions exif-tags.sh → image-meta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@ fi
image_file=$1

copyright_owner="Seth Fischer"
today=$(date +%Y-%m-%d)
current_year=$(date +%Y)
copyright_notice="(c) ${current_year} ${copyright_owner}; Licence: MIT License"
licence="MIT License"
licence_url="https://spdx.org/licenses/MIT.html"
copyright_notice="(c) ${current_year} ${copyright_owner}; Licence: ${licence}"
project_url="https://rover.fischer.nz"
description="Final assembly of sethfischer-rover, a quarter-scale Mars rover. See <${project_url}>. Based on NASA-JPL's Perseverance Mars Rover."

exiftool \
-overwrite_original \
-Artist="${copyright_owner}" \
-Copyright="${copyright_notice}" \
-AttributionName="${copyright_owner}" \
-AttributionURL="${project_url}" \
-Comment="Alternative body for the NASA JPL Open Source Rover." \
-Description="${description}" \
-License="https://spdx.org/licenses/MIT.html" \
-Rights="MIT License" \
-UsageTerms="MIT License" \
-Comment="${description}" \
-License="${licence_url}" \
-MWG:Copyright="${copyright_notice}" \
-MWG:CreateDate="${today}" \
-MWG:Creator="${copyright_owner}" \
-MWG:DateTimeOriginal="${today}" \
-MWG:Description="${description}" \
-Software="${project_url}" \
-UsageTerms="${licence}" \
"$image_file"

0 comments on commit 6e6cab9

Please sign in to comment.