Skip to content

Instantly share code, notes, and snippets.

@TakashiUNUMA
Created May 31, 2014 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TakashiUNUMA/2a558516ebad1112a795 to your computer and use it in GitHub Desktop.
Save TakashiUNUMA/2a558516ebad1112a795 to your computer and use it in GitHub Desktop.
あるディレクトリに保存されたすべて同じ大きさの画像を、HTML で閲覧するための shell script。
#!/bin/sh
width=400
height=309
echo '<HTML>'
echo '<HEAD>'
echo '<TITLE> HTML VIEWER </TITLE>'
echo '<meta http-equiv="Content-Type" content="text/html; charset=SHIFT_JIS">'
echo '</HEAD>'
echo '<BODY>'
echo '<center>'
for FILE in $* ; do
echo "<img src=\"${FILE}\" width=\"${width}\" height=\"${height}\">"
done
echo '</center>'
echo '</BODY>'
echo '</HTML>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment