for i in *jpg
do
convert -strip -quality 50 -resize '>640x480' -auto-orient "$i" "$outdir/$i"
done
I create my “galleries” using this happy little accident.
# I am the Watcher. I am your guide through this vast new twtiverse. # # Usage: # https://watcher.sour.is/api/plain/users View list of users and latest twt date. # https://watcher.sour.is/api/plain/twt View all twts. # https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri. # https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject. # # Options: # uri Filter to show a specific users twts. # offset Start index for quey. # limit Count of items to return (going back in time). # # twt range = 1 7 # self = https://watcher.sour.is/conv/jyqgjhq
for i in *jpg
do
convert -strip -quality 50 -resize '>640x480' -auto-orient "$i" "$outdir/$i"
done
for i in *jpg
do
convert -strip -quality 50 -resize '>640x480' -auto-orient "$i" "$outdir/$i"
done
for i in *jpg
do
convert -strip -quality 50 -resize '>640x480' -auto-orient "$i" "$outdir/$i"
done
-auto-orient
flag. Hell yeah, this is really cool! No need to do my additional identify -format "%w" …
trickery anymore in other scripts to check for landscape or portrait and then swap numbers! In retrospect it's totally obvious that there's already something built into convert
. I should have done my research years ago.