mthumbnail - MagickThumbnail generate thumbnails and html index page from directories of images.
mthumbnail [options] [directory]+
mthumbnail stands for Magick Thumbnail. This name is because of the use of ImageMagick/convert command.
MagickThumbnail : mthumbnail : 0.002
Added -n option to normalize picture to adjust color, brightness level.
MagickThumbnail is a perl script that let you organize a directory with some images in gif, jpg, png or any format, to publish under some place in the Internet.
It is really easy for anyone to modify this script to allow some user preferences, because Perl scripts are pretty much readable.
It is really small, because of the use of Perl, efficient enought to parse Mo of image
files, because it rely on ImageMagick/convert command. Versatil, because it can easily
understand up to 68 images formats and as nice features. It really let you make nice,
soft and light Web gallery into a few instant. Just one command to make the gallery. After
this think about using sitecopy
to post it to the Internet, if needed.
MagickThumbnail will do the following for you :
geometry
(-g
) option. It can read 68 major image formats. For now, just gif, jpg and png
formats are managed.
MagickThumbnail will generate thumbnail only when it is necessary, it just compare file
modification times. Thumbnails filenames start with TN_
. MagickThumbnail will not
generate thumbnails of thumbnails.
descript.ion
files.
MagickThumbnail use those descriptions files to make HTML index file more informative.
Use the HTML TITLE
tag to describe the thumbnail.
There is two descriptions : 1/ HTML ALT
tag, 2/ a short description in the bottom of
the thumbnail.
In the bottom of thumbnail, if there is no description for a file, MagickThumbnail will default to filename. It will truncate description if to long. If description contain a field separator - , it will also truncate before this special char.
HTML ALT
tag is a good way to give information. For now, you can see
in this order filename, file date, file size, and description if it exists. Now we use TITLE
tag
-C
option.
page.html
) for
each subdirectories.
-q
option, for quality.
-g
option.
convert
command.
It just look like a percentage. 75 seem to be a good ratio for quality and size.
You can play with it. This option will apply for JPG, (PNG) not for GIF files.
Some very simple examples.
$ thumbnail mydir
$ thumbnail -v .
$ thumbnail -v dir1 dir2
Every options are pretty to understand, so just play with them. I dont need to tell you more.
MagickThumbnail depends on ImageMagick/convert command. So you will need to install this command
if you dont have it on you system. See rpm -qa rpm -qa | grep -i ImageMagick
on Linux systems.
MagickThumbnail work with perl 5.005, convert 4.2.9, under any Unix systems. For Windows place, see if you can find ImageMagick. There is
perl thumbnails convert resample ImageMagick
convert
command. May be command identify
give you some
information about image formats.
sitecopy
to post only image changes to the Web.
Here are some idea for futur of MagickThumbnail
Marc Quinton / http://quinton.free.fr/MagickThumbnail/
If you really need to contact me, try to guess my email. Its really easy. It dont want to publish my email to much, because of mail spaming. Its my name@free.fr.
Download at : http://quinton.free.fr/MagickThumbnail/download/
Screenshot at : http://quinton.free.fr/MagickThumbnail/demo/
If you like this utility, feel free to make many links, send me some mails, postcards, money, chocolate, and what ever you want.
Any comments are welcome.