ThumbNail Maker for Unix (-like) systems
Welcome fellow surfer to yet another ThumbNail programs homepage!
[ source / download ]
[ changelog ]
Please repeat after me:
This is my tn.
There are many like it,
but this one is mine.
To make a long story short(er):
|
Features
|
- Are you looking for a small program that would easily
create a simple and user friendly www-thumbnail from a
bunch of media files?
|
- All in one script.
- Minimal folder increase after ThumbNail creation.
- With the default (100x100) thumbnail the folder size
increasese is only ~8 % per image!
- Minimal clicking needed.
- After clicking on one thumbnail, your taken to that
thumbnails html page, from where you can easily click
yourself to the Previous/Next picture or straight to some
other index page.
- After which you can easily "cycle" though all of the
picture just by clicking anywhere on the
enlarged picture.
- OR you can use the Slide-Show feature (which by default
waits for 5 seconds before jumping to the next image.
- SlideShow feature.
- Support users own rc-file (~/.tnrc).
- Shows image information in multiple ways
- GPLed software
|
This is exactly what I had in mind back in 2001 when I realized
that I didn't like any of the thumbnail programs that I had
previously encountered...
So, I usually ended up just placing my jpg's in one dir from which
my friends then could view them or save them, one by one. Quite 80's
really...
But one day (just as the sun was rising) I cought a glimse of one Juha
Särestöniemi's news-post where he showed a small shell-script which
(at that time) seemed really cool. After having used his script from
quite some time, I one day decided to make it a bit more user-friendly
and thus tn was
born.
After some heavy bash tweaking I finally ended up with what
tn is
today. It's a totall re-write of Jussi's old script but since he
showed me how easily the task can be done in unix, I'll keep him in
tn's "history" ;)
As can be seen from the script, the script only requires three
programs to work: (all of which are included by default in any unix
(or unix-like)
Operating System that "uses" the word "modern")
# Requirements:
# ---------------------------------------------------------------
# - bash [ Any reasonable version should do ]
# - awk [ Likewise... ]
# - convert [ At least verison 5.4.6. ]
#
# Well, it also uses "ls", "wc" and "mv", but since they are
# rudimentary "Unix" I'll just assume that you have them ;)
Well, enough said! Time to boogie, but before that, let me mention
that maybe the thing that I like the most about tn is it's
simplicity, usability
and the fact that you can scroll through all of the pics without even
touching the mouse! (the power of tab)
Howto tn:
(here's a real life example)
1. # download the tn - script [ wget... ]
2. # place it somewhere in you path [ example ~/bin/tn ]
3. # cd to_where_you_got_some_media_files [ i.e. *.jpg, *.gif *.png... ]
4. # tn [ Could it be more easy? ;-]
If you don't like the default colors width etc, then make your own rc
file like this:
cat > ~/.tnrc
#################################################################
# BEGIN :: PERSONAL RC DATA ::
#################################################################
# If you feel like giving it a more personal touch, edit these...
#################################################################
# (if you copy-paste these into a ~/.tnrc file then you can always
# safely upgrade without loosing your own color settings, zen do a
# " chmod 755 ~/.tnrc " and nirvana is around the corner... ;)
#################################################################
# Who is the author if these pics...
AUTHOR="Kristoffer Sederlöf"
# Amount of wait time between slides...
REFRESH="5"
# Change to your wanted thumbnail size
TN_RESO="100x100"
# Where to fallback when user clicks on the "Picture Album Name"
FALLBACKDIR="../"
# Here you can change the name of the default index page.
INDEXFILE="A_index.html"
INDEXFILE_TYPE="all"
INDEXFILE_NR_PIC_PER_PAGE="12"
# Your wanted _fake_ image size goes here
# This is placed in the IMG:age tag as width=xxx. I.e. people with
# puju resolution can also see your images. The images them selves
# remain the original size.
#
# This value will also be used if you have any avi files in your
# current working dir...
FAKE_PICTURE_WIDTH="800"
# Am I the owner of these files??? (show $AUTHOR as copywrite owner)
SKIP_COPYRIGHT=""
# as ENV says...
USE_ORIGINAL_PICTURE_WIDTH=""
# The default COLORS & WIDTHS can be changed over here:
TEXT_COLOR="#0000FF"
BG_COLOR="#AABBAA"
TN_BG_COLOR="#AACCDD"
LINK_COLOR="#0000EE"
VLINK_COLOR="#551A8B"
ALINK_COLOR="#FF0000"
DIR_NAME_COLOR="#00FFFF"
SMALL_HOWTO_COLOR="#0000EE"
TN_CREATION_DATE_COLOR="#000099"
IMG_TEXT_COLOR="#000099"
IMG_TABLE_BORDER="0"
WEEK_COLOR="#0000EE"
FIRST_COLOR="000000"
LAST_COLOR="000000"
TABLE_COLOR="#99DDFF"
TABLE_WIDTH="60%"
TABLE_BORDER="1"
TABLE_BORDER2="0"
TABLE_CELLPADDING="10"
TABLE_CELLSPACING="5"
TABLE_CELLPADDING2="5"
TABLE_CELLSPACING2="5"
TABLE_ROW_PICTURE_AMOUNT="4"
HR_WIDTH="75%"
TD_WIDTH="15%"
#################################################################
# END :: PERSONAL RC DATA ::
#################################################################
^D # That's Control D
Then do a "chmod 755 ~/.tnrc" and that's that ;)
ToC
Kristoffer Sederlof
Last modified: Mon Sep 8 16:20:02 EETDST 2003