Skip to content

Commit

Permalink
transfer image metadata from png to jpg
Browse files Browse the repository at this point in the history
  • Loading branch information
grische authored and maurerle committed Jun 27, 2024
1 parent 53d8f36 commit 49875a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conversion-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,7 @@ for file in pictures-svg/*.svg; do
mogrify -trim "pictures-png/$normalized.png"
# even though mogrify trims the png, we need to trim again for the jpg
convert "pictures-png/$normalized.png" -resize 256x256 -background white -flatten -alpha off -trim "pictures-jpg/$normalized.jpg"
# transfer license and author tags to jpg
exiftool -overwrite_original -tagsfromfile "pictures-png/$normalized.png" "pictures-jpg/$normalized.jpg"
fi
done;

0 comments on commit 49875a3

Please sign in to comment.