home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
webslice.zip
/
readme
next >
Wrap
Text File
|
2001-10-07
|
3KB
|
60 lines
WebSlice.cmd v0.70
WebSlice provides you with a long-sought function on OS/2: it will
cut an image into small pieces ("slices" or "tiles") for display in an
html table on a webpage.
WebSlice.cmd requires Impos/2 version 2.10. It will NOT work with
earlier versions since the (undocumented) Impos REXX functions used
are not available prior to v2.10. Please note also that the upgrade to
Impos/2 v2.10 is not free.
Place the WebSlice CMD file into the Impos directory and execute it
from there. You must supply an image name including its full path. The
image file may be located anywhere; but the directory must have write
access (hence a CDROM is NOT suitable as target). Such as:
WebSlice drive:\path\myimage.tif
Optionally add two integers (slice_width slice_height) to override
the default tile size, such as
WebSlice drive:\path\myimage.tif 100 200
WebSlice will then generate slices ("tiles"; as GIF files) of the
entire image (of any size) at the default size of 200x150 pixels per
tile in the same directory as the original image. If provided as a
command line parameter to WebSlice, tiles of other sizes are being
generated. The slices will be named by the image 'base' filename
appended with '_ij.GIF', whereby ij refers to the horizontal/vertical
coordinates of a given slice.
High color images will be converted to 8 Bit GIF files before
slicing. The latter step is made interactive for purpose to provide
individual control on the color reduction process. Currently, WebSlice
will only produce image tiles in GIF format (created from any image
format that Impos/2 supports, though).
At the same time, a very basic HTML file (named with the 'base' image
name and appended by "_table.htm") will be generated in the image's
directory to display all slices in a proper HTML table. You may reuse
this code in your own html document; depending on where you place your
web images by default, the image paths may need to be updated.
If you're interested what the results can look like, check this out:
http://www.mh-hannover.de/tagungen/dgfi2000/test/blume_table.htm
WebSlice will generate a logfile WEB_SLICE.LOG in the Impos/2
directory.
While I have not seen any deleterious side effects myself from using
this software, using it is entirely at your own risk.
You are free to distribute this archive provided it remains
unaltered.
Your feedback is welcome.
Martin R. Hadam
Hadam.Martin@MH-Hannover.de
07 October 2001