gdinwiddie, 2 months ago @sashag 2/2 if [ -f description.html ] then echo "<div>" cat description.html echo "</div>" elif [ -f description.txt ] then echo "<pre>" cat description.txt echo "</pre>" fi for ORIG in *.jpg .png do if [ -f $ORIG ] then THUMB="thumbnails/${ORIG%.}-thumb.jpg" convert -auto-orient -resize 240 "$ORIG" "$THUMB" identify -format "<a href=""$ORIG""><img src=""$THUMB"" width="%w" height="%h" alt=""$ORIG"" title=""$ORIG"" /></a>\n" "$THUMB" #rm "$THUMB" fi done
@sashag
if [ -f description.html ] then echo "<div>" cat description.html echo "</div>" elif [ -f description.txt ] then echo "<pre>" cat description.txt echo "</pre>" fi
for ORIG in *.jpg .png do if [ -f $ORIG ] then THUMB="thumbnails/${ORIG%.}-thumb.jpg" convert -auto-orient -resize 240 "$ORIG" "$THUMB" identify -format "<a href=""$ORIG""><img src=""$THUMB"" width="%w" height="%h" alt=""$ORIG"" title=""$ORIG"" /></a>\n" "$THUMB" #rm "$THUMB" fi done