On Sat, 20 Jan 01 14:36:10 +8, Neo Sze Wee wrote:

> How do you display .zbm in Arachne?

>>> If you wish, I will send you a .ZBM of my screen - 640x480 approx 10kb
>>> showing approximately 1/3 of your .GIF

 That particular portion of the message was actually from Clarence. ;-)

Clarence came up with this great idea.

However, since implementing them into Arachne is a collaboration between
Clarence, Bernie and myself... I am more than happy to provide instructions.

1) you'll need to create a subdirectory under your cache directory.
   (such as \arachne\cache\zbm )

2) you'll need these 3 lines added into mime.cfg

file/.zbm >BMP|[150]pkunzip -o $1 $azbm \n copy /b $azbm\\*.bmp $2
 \n del $azbm\\*.bmp
(place back together as 1 line [this one views "local" ZBMs])

image/x-zbitmap >BMP|[150]pkunzip -o $1 $azbm \n copy /b $azbm\\*.bmp $2
 \n del $azbm\\*.bmp
(place back together as 1 line [this one views them "online" if the server
 they come from sends content-type image/x-zbitmap] )

image/zbm ZBM
[this one places the .ZBM extension on them when we attach them to or
 receive them attached to an eMail]

3) make sure that pkzip.exe and pkunzip.exe are located in your path.

That's all there is to it for viewing .ZBM files inside of Arachne.

Now for how to create the .ZBMs in the first place. ;-)
In my case all BMPs that I want to zip-up are placed into \1temp\bmp
This batch file does them all and places them into \1temp\zbm

---zbm.bat---
@echo off
cd \1temp\bmp
for %%c in (*.bmp) do pkzip -ex \1temp\zbm\%%c %%c
ren \1temp\zbm\*.bmp \1temp\zbm\*.zbm
cd \
echo Done!
_____________

 You might be asking.
How big a difference can it be to just zip-up a BMP???
Well, is 5mb reduced to only 85kb good enough? :)

[OPENDOS 7.01] C:\>sf.exe -lhstwa \1temp\bmp\
Listing directory: C:\1TEMP\BMP\
  Name mask: *.*
!!EE01.BMP      2507814    5-12-2000   22:36:10   -----A--
!!EE02.BMP      1040310    5-12-2000   22:54:54   -----A--
!!EE03.BMP      1467558    5-12-2000   22:56:48   -----A--
Sub-Directories: 0
5015682 bytes used in 3 files.

[OPENDOS 7.01] C:\>sf.exe -lhstwa \1temp\zbm\
Listing directory: C:\1TEMP\ZBM\
  Name mask: *.*
!!EE01.ZBM        42536    1-20-2001   21:27:06   -----A--
!!EE02.ZBM        19675    1-20-2001   21:27:10   -----A--
!!EE03.ZBM        22918    1-20-2001   21:27:14   -----A--
Sub-Directories: 0
85129 bytes used in 3 files.

I hope you don't mind that a CC of this is going to the list.
(a few other list members might find this interesting as well) ;-)

L8r,

--
 Glenn
(your friendly neighborhood compu-nerd)
          http://arachne.cz/
 http://www.delorie.com/listserv/mime/
  http://freedos-32.sourceforge.net/

Reply via email to