Last active
August 2, 2024 00:55
-
-
Save ericosur/bb4e753205d08d5762d18b651ab84e69 to your computer and use it in GitHub Desktop.
a bash script that use ImageMagick
This file contains hidden or 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
#!/bin/bash | |
# for i in {1..8} ; do | |
# DST=bike${i}.jpg | |
# /usr/bin/cp -f bike.jpg ${DST} | |
# exiftool -n -Orientation=$i ${DST} | |
# done | |
# for i in {1..8} ; do | |
# SRC=bike${i}.jpg | |
# DST=bike${i}o.jpg | |
# magick $SRC -resize 50% $DST | |
# done | |
# to know what font supports | |
# magick -list font | |
# | |
# am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///sdcard/Download | |
# magick src.jpg -pointsize 384 -fill red -annotate +800+800 "001" dst.jpg | |
for i in {1..8} ; do | |
SRC=bike${i}s.jpg | |
ANN=bike${i}ann.jpg | |
magick $SRC -font 'DejaVu-Serif' -pointsize 200 -fill red \ | |
-annotate +0+400 "abcd${i}qprs" $ANN | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment