Contact:
( Wenny Macura )
wmacu@telus.net
Tel 604 925 9425
1] What is ImgScale:
2] Install ImgScale:
3] Compile ImgScale:
4] Notes:
ImgScale is a console application designed to scale and or sub-sample single/multiple Images.
ImgScale is capable of both Image Scaling as well as pixel replication.
If *.scl images are generated [-q 0 or not specified ] the output images are truly scaled image
ImgScale uses special scaling algorithm.
( Compare the results with Photo Shop, and you might be surprised. )At this time the input image formats are TIFF, JPEG, BMP, TGA, PGM and PPM.
The output image file will be either TIFF or JPEG depending on the -q option.
In case [-q] is set to 0 as in [-q 0 ] or [-q ] is not used, the default output will be a TIFF file with an *.scl extension,
Use the -e option to change the extention ( as -e tif ).
The TIFF output may be optionally compressed using the [-c ]option.In all other cases the output will be a JPEG file with the *.tnl extension by default.
Again use the -e option to change the extention.
If the destination file exists, it will not be replaced.
The WM_ImgLib library is described in more detail in WM_ImgLib.htm
The INC_PATH variable will contain Tii directory, containing the WM_ImgLib includes, needed for compilation.
After the install, to execute the ImgScale from Xterm type:
ImgScale Usage:
ImgScale -i inputFile [-o OutputFile] -s ###[%] [-d # ] [-r ##.##] [-q ###] [-e .ext [-k] [-t] [-c] [-a]
Input File extensions are [.tif/.jpg/.bmp/.pgm/.tga/.png/.ppm]Input wild cards are allowed -i input file(s) if -i contains a wild card, as in [ ../* ],
then only the path is extracted from the -o option
Input File extensions are [.tif/.jpg/.bmp/.pgm/.ppm/.tga/.png/.gif]
Input wild cards are allowed.-i[--input] input file(s)
if -i contains a wild card, then only the path is extracted from the -o option-o[--output] output path and or file.
if -o is not specified the output will be directed to /tmp.-s[--size] ###[%] [ default 400 ]
if only path is specified use the trailing '/' as in [ /foo/ ]
Output size in pixels or percent of the original image.-a option is not used with [%]
if % is appended to the ### then the the original image is scaled by percentage as specified
-q [--quality] ### [ default 66 with -t option].
JPG output quality of the JPG thumbnail. Useful range 15 to 95 ( 0 to 100 ).
0 or no argument produces a Bi-cubically scaled TIF image as *.scl [use -e .xxx to change ]
see also -t option.-d [--debug] #
debug level 0 to 5-r [--res ] ###.### [default 300.00]
Output Image Res in dpi.-g [--gamma ] ###.### [default 1.00]
Output Image Gamma.-k [--keephdr].
Keep the generated Image header files.-t [--thumbnail].
The headers are placed to the output directory, see [-o].
produces a JPEG output with *.tnl [use -e .xxx to change] extenuation if -q is not specified default is used.
if -t option is not given, the output file extenuation will be *.scl.-c [--compress].
if -q option is 0 or not specified compress the output TIFF file.-v [--version].
display the version number.-a [--fit_to_square ].
fit the output image into a square defined by the -s option.-e Outputfile Extenuation.
-?, -h print this mesg.
The Linux version was
compiled
with [ gcc version 3.2.2 ] and [ libc-2.2.3 ].
C] It is assumed that the following Linux
packages
or at least the libraries, were installed:
/usr/local/
tiff-v3.5.7
/usr/local/jpeg-6b.
The packages mentioned above
are available from "http://www.ibiblio.org/" or mirrors.
I do believe that they are both, part of most of the Linux
distributions.