about me
homepage
blog
gpg, pgp
CV (french)
CV (english)
projects
Debian
VideoLAN
FLESSD
Elk Scheme
libcaca
zzuf
genethumb.sh
PWNtcha
MonsterZ
LMOS
git-bigfiles
more...
MPEG & DVD
DVD subtitles
MPEG-4 lecture
DeCSS distribution*
doc
SVN & CVS
gprof & pthreads
Debian project lecture
shorter version
Verisign dickheads
doubleclick filter
WTFPL / LPRAB
leisure
artwork
photos
music
DTC logos
porn
goatse
La Classe américaine
#LinuxFr fortunes*
links

genethumb

Presentation

genethumb is a quick and dirty shell script aimed at generating HTML indexes with thumbnails from a directory full of images. It is highly unconfigurable, might be buggy, and is quite slow, but it has happened to be extremely popular amongst friends, so I decided to make it available. Useful when sorting pr0n (or so I’ve been told).

genethumb is licenced under the GPL. It requires convert and identify from the package ImageMagick.

genethumb also has a FreshMeat page.

You might wonder why I did such a script since there were lots of professional tools to achieve the same goal, with additional features. Well, I just like the idea of copying one single file to my ~/bin and being finished with the installation. No need to worry about missing libraries, you just need ImageMagick installed.

But... but... it sucks !!!

Of course it sucks. It’s slow, it’s unconfigurable. But it works and I like it.

Download

Latest version is genethumb-0.0.8.sh.

Usage

Just go to a directory full of images, and launch genethumb. It will generate thumbnails and an index.html file for you.

You can specify a number of columns if you do not like the default value of 5. For instance: genethumb 12.

Another example: if you want to recursively run genethumb in a directory, try the following line:

for dir in `find -type d -name '.xvpics' -prune -o -print`; do ( cd "$dir" && genethumb ) ; done

Examples

Websites using genethumb to create their thumbnails include for instance: