Skip to content

Instantly share code, notes, and snippets.

@davidsheldon
Created July 17, 2009 15:15
Show Gist options
  • Select an option

  • Save davidsheldon/149102 to your computer and use it in GitHub Desktop.

Select an option

Save davidsheldon/149102 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir thumbs
cp *.jpg thumbs
perl -e 'while(<*.jpg>) { print "<a href=\"$_\"><img src=\"thumbs/$_\"></a>\n";};' > index.html
mogrify -geometry 100 thumbs/*.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment