sabwbmpGPL'd command line BMP to WAP happy WBMP Converter for Windows and UNIXby Scott A. BelmonteThe sabwbmp homepage is at http://www.DroidWarez.com/sabwbmp/ |----------------------------------------------------------| | sabwbmp BMP to WBMP Converter | | (c) 2000 Scott A. Belmonte, | | http://www.DroidWarez.com/sabwbmp/ | |----------------------------------------------------------|
|
What's New
|
Introduction to SABWBMPWelcome to the sabwbmp software page. Sabwbmp is a
command line program (that knows about BIG_ENDIAN and LITTLE_ENDIAN computer systems)
designed to convert BMP files to WBMP image files suitable for display on compatible WAP
enabled mobile phones and other WAP (Wireless Application Protocol) complient browsers.
Sabwbmp "c" source code and
MS-Windows 32 bit executable is distributed under the GNU Public Licence (GPL).
This is free software so please share, modify, distribute and enjoy.
Type sabwbmp on the command line with no options to get a simple help
and options listing.
|
256 Colour BMP Before 2 Colour BMP Before
|
SABWBMP Converted SABWBMP Converted
|
|
Version and Download Information
|
|
Technical/Usage Information
sabwbmp V1.0 usage:
Usage:
sabwbmp [Options] input_file output_file
Options:
-d Debug: Outputs info about BMP and WBMP files
-r Filter out red.
-g Filter out green.
-b Filter out blue.
-t # # between 0-100: if colour is RGB then
if R+G+B greater than # percent then pixel
is set to white.
|
|
Example
In JPG Format: [Original JPG File] |
[GIF version of Shrunk down 256 Colour BMP File] |
[GIF version of 2 Colour WBMP File Converted with sabwbmp]
Imagine you have generated a 640 x 480 pixel JPG file on the fly and need to
convert this on the fly to a shrunk down WAP happy WBMP image. Following is one
example on how to do this
First use the Independent JPEG Group's free JPEG Software to resize and convert the image to
a 256 colour BMP file. (ftp://ftp.uu.net/graphics/jpeg/)
/usr/local/bin/djpeg -scale 88/640 -bmp -colors 256 status.jpg > status.bmp
Then use sabwbmp to convert into a WBMP file (you may have to much around with the
filter settings to get the desired result. In this example, we wish to filter out the blue
background):
sabwbmp -b -t 20 status.bmp status.wbmp
Note: If you want to have the Independent JPEG Group's free JPEG Software (or your favourite
software) to do all the colour conversion work, use the following style of command.
This will create a dithered 2 colour BMP file that can be converted
without any options into a WBMP file using sabwbmp.
/usr/local/bin/djpeg -scale 88/640 -bmp -colors 2 -grayscale status.jpg > status.bmp
Then use sabwbmp
sabwbmp status.bmp status.wbmp
|
|
SABWBMP is Crap! The Image does not Display!!WAP WBMP Image is Not Displaying!
This is most likely a problem with the emulator or WAP enabled device not reading the width and the
height of the image correctly. Also, note that the pre 10th January 2001 version of
Sabwbmp had a bug with "padding" that could also cause images not to display properly. This
has been fixed in the latest version of Sabwbmp.
One suggestion is to try keeping your image below 128 pixels might fix this problem up. For WBMP
images creater than 127 pixels in width or height, the WAP emulator or Browser would have to read
the multibyte encoding of the height and width properly to display the image correctly.
Keeping the size below 128 pixels across or down ensures the height and width is always encoded
in one byte keeping it compatible with these poorly written WAP enabled programs.
WAP WBMP image is now displaying
Also, make sure that the BMP file is not more than 256 colours. Some graphics program claim they
have saved at reduced colours, but this may not be so, or they may not be doing a proper job creating
the BMP file.
|
|
Problem finding and using the SABWBMP Debug modeIt might also be possible that SABWBMP is unhappy? How do you tell? Try using the -d debug option to check out what sabwbmp is doing. As part of the "-d" debug option, SABWBMP gives out the header information and "*"s indicating where the white pixels are. E.g.,: sabwbmp -d -b -t 20 status.bmp status.wbmp > out.txt
|
N.B. In order to filter spam, only e-mails with the word droidwarez in the subject line will get through. E-mails that do not have droidwarez in the subject line will be deleted automatically.
