exo-notes/cpimg

14 lines
206 B
Plaintext
Raw Permalink Normal View History

2022-02-24 06:55:41 +00:00
#!/bin/sh
set -eu
imgdir="content/files/i"
for img in $@
do
imgbase="$(basename $img)"
imgpath="${imgdir}/${imgbase}"
cp $img $imgdir
convert -resize 800x600 "$imgpath" "${imgdir}/t/${imgbase}"
done