BASH photo gallery

From XPUB & Lens-Based wiki
Revision as of 16:57, 15 July 2019 by Michael Murtaugh (talk | contribs) (Created page with "```bash cat << EOF > index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> div.image { float: left; } </style> </head> <body> EOF for i in *.JPG do t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

```bash cat << EOF > index.html <!DOCTYPE html> <html> <head>

   <meta charset="utf-8">

<style> div.image {

   float: left;

} </style> </head> <body> EOF for i in *.JPG do t=${i%*.JPG}.thumb.jpg if [ ! -f $t ]; then

   echo convert -resize 360x360 $i $t
   convert -resize 360x360 $i $t

fi

echo "

<a href=\"$i\"></a>

" >> index.html

done cat << EOF >> index.html </body> </html> EOF ```