English | Japanese
MakeWebAlbum.sh is the Shellscript which makes Web Album using with .jpg files in current directory. The Web Album is made with the catalogue pages within tiled small thumbnails and browse pages within a larger image (Sample). This script is also able to make link to the largest image from browse page.
MakeWebAlbum.sh uses ImageMagick to manipulate images.
MakeWebAlbum.sh needs the bash and ImageMagick.
Download and unzip MakeWebAlbum.sh.zip and then put it on the directory which is assigned to the search PATH.
Put .jpg files in a directory and then run MakeWebAlbum.sh. Using with options, you can give the parameters of page title or image size and so on. options are bellow.
| Option | example | default | description |
|---|---|---|---|
| -title | -titlePage Title | Album |
Set title of the Album. MakeWebAlbum.sh recognize as title words which untile next option (begin with '-'). In Example 'Page Title' is set as the page title. |
| -cols | -cols3 | 3 |
Set columns of the thumbnails in the catalogue page. In example, there are three columns in a catalugue page. |
| -rows | -rows4 | 4 |
Set rows of the thumbnails in the catalogue page. In example, there are four rows in a catalugue page. |
| -small | -small160x120 | 160x120 |
Set thumbnail image size in pixsels. In example, use 160px in long side and 120px in short side. |
| -medium | -medium480x320 | 480x320 |
Set image size in browse page in pixsels. In example, use 480px in long side and 320px in short side. |
| -large | -large1024x768 |
Make link to larger image from browse page. In example, use 1024px in long side and 768px in short side. When only '-large', MakeWebAlbum.sh doesn't convert its size and only copy original image to larger image. Without this option, there are no link to larger image from browse page. |
|
| -noconvert | -noconvert | MakeWebAlbum.sh doesn't make thumbnalis and browse image with this option. This option should be used only change album layout when once made thumbnails and browse images already. |
|
| -index | -indexindex.html | Make link to outer page from catalogue pages. In example, MakeWebAlbum.sh make link to 'index.html'. Without this optiion, the link to outer page isn't created. |
|
| -css | -cssStyleSheet.css | StyleSheet.css | Generate Cascading Style Sheet File. In example, StyleSheet.css is used as stylesheet file. StyleSheet.css is used for stylesheet file when only '-css'. Without this option, generated web album pages don't use stylesheet. Given file exists already, MakeWebAlbum doesn't rewrite but only refer that file. |
Output files are put on HTML/ directory which made on current directory.
Output when run MakeWebAlbum.sh in the directory which has N jpeg files are berrow.
Example when run with
$ MakeWebAlbum.sh -title2004/1 Mt. UENO -cols4 -rows2 -css -index../index.html
in berrow directory.
-rw-r--r-- 1 tatsuo staff 776754 9 Mar 01:17 IMG_0441.JPG -rw-r--r-- 1 tatsuo staff 1727589 9 Mar 01:17 IMG_0454.JPG -rw-r--r-- 1 tatsuo staff 1331976 9 Mar 01:17 IMG_0459.JPG -rw-r--r-- 1 tatsuo staff 873114 9 Mar 01:44 IMG_0461.JPG -rw-r--r-- 1 tatsuo staff 670641 9 Mar 01:45 IMG_0462.JPG -rw-r--r-- 1 tatsuo staff 683666 9 Mar 01:49 IMG_0465.JPG -rw-r--r-- 1 tatsuo staff 548400 9 Mar 01:50 IMG_0470.JPG -rw-r--r-- 1 tatsuo staff 478852 9 Mar 02:09 IMG_0474.JPG -rw-r--r-- 1 tatsuo staff 952403 9 Mar 02:13 IMG_0478.JPG -rw-r--r-- 1 tatsuo staff 1622231 9 Mar 01:17 IMG_0479.JPG -rw-r--r-- 1 tatsuo staff 2612871 9 Mar 01:17 IMG_0481.JPG -rw-r--r-- 1 tatsuo staff 1461571 9 Mar 01:17 IMG_0484.JPG -rw-r--r-- 1 tatsuo staff 1378843 9 Mar 01:17 IMG_0487.JPG -rw-r--r-- 1 tatsuo staff 795373 9 Mar 02:03 IMG_0488.JPG -rw-r--r-- 1 tatsuo staff 757685 9 Mar 01:17 IMG_0489.JPG -rw-r--r-- 1 tatsuo staff 616534 9 Mar 02:05 IMG_0493.JPG