Contacts and film rolls
Once we have scanned many film rolls, it's great to have web pages with thumbnails and browsing features. for this, Bins is your friend ! It's a command line web album generator. It's great, easy to use with nice templates... The scrip bellow is useless, it's a just a batch for bins album generation on resized pictures (with convert command from imagemagick) copied to my www directory.
Bellow an example of the result.
[barth@localhost script_images]$ cat make_web_bins.sh
#!/bin/sh
export LANGUAGE=en_GB:en_GB.UTF-8:en
cd $1
mkdir tmp
for i in `ls *.jpg | grep -v _s.jpg`
do
dest=${i%.jpg}_s.jpg
if [ ! -s $dest ]; then
convert -geometry 60% $i $dest
echo $dest
fi
done
mv *_s.jpg tmp
bins tmp web_nb$1 -s joi
rm -rf ~/public_html/photosweb/photos/web_nb$1
mv web_nb$1 ~/public_html/photosweb/photos
rm -rf tmp
Bellow an example of the result.
2 Comments:
Bins is great and really easy to use, but don't you think it spoils too much storage space? I am now using the anti-nerdy box.net and it's handy sharing options, shame on me !
BTW, do you have a dynamic solution to resize the pictures and not uploading the different sizes yourself?
Let's take an example, for 1024x768 images, for instance, this lovely pic named nb148_04.jpg
Ok, let's check what is generated by bins.
ls -laht nb148_04_*.jpg
383K sep 19 2005 nb148_04_s_Lg.jpg
45K sep 19 2005 nb148_04_s_Med.jpg
23K sep 19 2005 nb148_04_s_Sm.jpg
6,3K sep 19 2005 nb148_04_s_pre.jpg
The Medium size and Small size and Preview are less than 80ko for a 383Ko original size, which is less than 20% additional space.
Bins is nice because it's not using any ressource and can run on any platform even Hern42 freeBSD brick, even without a web server.
Box.net is cool, but it doesn't run on my computer ;)
Post a Comment
<< Home