Site.SideBar
|
- EXT=jpg; URL="https://jstookey.com/images/2019/20190000_example"; mkdir sm; mogrify -auto-orient -path ./sm -resize 400x *.$EXT; for file in sm/*.$EXT; do LEN=`expr length $file`; STRLEN=`expr $LEN - 7`; SHORTNAME=${file:3:$STRLEN}; DEST=${SHORTNAME}_sm.$EXT; mv $file $DEST;echo "<center><a href=$URL/$SHORTNAME.$EXT><img src=$URL/$DEST></a></center>" >> out.txt;done; rmdir sm;
|