Last active
December 16, 2022 00:42
-
-
Save DanEdens/140058b1b53911087b56bec854379892 to your computer and use it in GitHub Desktop.
Overlay Photos creation time to southwest corner of image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extract the EXIF DateTime metadata from the input file and store it in the clipboard | |
magick identify -format %%[EXIF:DateTime] "%1" | CLIP | |
# Retrieve the contents of the clipboard and store it in the CLIPBOARD_TEXT variable | |
for /f "eol=; tokens=*" %%I in ('powershell Get-Clipboard') do set CLIPBOARD_TEXT=%%I | |
# Use the Magick command to annotate the input file with the EXIF DateTime metadata | |
# and save the output to a new file with "_converted" appended to the filename | |
magick "%1" -gravity SouthWest -fill "#7C0A02" -pointsize 84 -annotate +50+50 "%CLIPBOARD_TEXT%" "%1_converted.jpg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment