home *** CD-ROM | disk | FTP | other *** search
- >>> WHATPIC VERSION 2.0 <<<
- Released March, 1992 Copyright (C) Mike Dowell
-
- WHATPIC is a graphic file utility. It will identify any file it recognizes,
- and prints the format, width, height, number of colors, filesize and
- drive volume.
-
- File Size
- WHATPIC.COM 14248
-
-
-
- File formats currently recognized by WHATPIC:
-
- Format Description
- ------ -----------
- BMP Microsoft Windows 3.0 bitmap
- FLI Autodesk Animator animation file
- GIFxxxy Compuserve's Graphics Interchange Format: xxx is the version number,
- y is an I if the image is interlaced
- ILBM Deluxe Paint/AMIGA IFF InterLeaved BitMap
- IMG/GEM Ventura Publisher file
- JFIFx.x JPEG File Interchange Format: x.x is the version number
- MAC MacPaint file
- PBM Deluxe Paint II enhanced IFF BitMap
- PCXx.x PC Paintbrush/ZSoft file: x.x is the version number
- PIC PC Paint/Pictor file
- RIX ColoRIX VGA Paint file
- TARGAxx Truevision Targa file: xx is the image type described below
- TIFFx Tagged Image File Format: x is an I or M for the byte order
-
-
- HOW TO USE WHATPIC
- ------------------
- The usage is very simple:
-
- WHATPIC <filespec1> <filespec2> ...
-
- eg. WHATPIC a:*.bmp nagel??.jpg b:\pic\gif\*.*
-
- Notice wildcards and multiple filespecs are allowed.
-
-
- WHAT DOES WHATPIC TELL YOU?
- ---------------------------
- The program has two purposes, to check if the file is a graphic file it
- recognizes, and then to find the specifications of that file. So you
- can run the program on a single file to check if it is a GIF picture.
-
- Here is some sample output:
-
- WHATPIC a:*.gif b: nagel??.gif
-
- Filename Format Width Height Colors Filesize Drive Label
- ------------ -------- ----- ------ ------ -------- -----------
- LAFORGE .GIF GIF87a 320 x 200 16 20480 STARTREK #1
- NCC170A .GIF GIF87a 320 x 200 16 8192 STARTREK #1
- PIKARD .GIF GIF87a 320 x 200 16 16384 STARTREK #1
- WORF .GIF GIF87a 320 x 200 16 21504 STARTREK #1
- MICKEY .GIF GIF87a 640 x 480 16 34366 CARTOONS #2
- BUGSBUNN.GIF BMP 320 x 200 256 39936 CARTOONS #2
- OPUS .GIF GIF87a 640 x 720 16 11264 CARTOONS #2
- RAGERAB2.GIF GIF87a 640 x 350 16 54784 CARTOONS #2
- NAGEL01 .GIF GIF87a 640 x 350 16 11125 *Mike-D *
- NAGEL02 .GIF GIF87a 640 x 350 16 5174 *Mike-D *
- NAGEL03 .GIF GIF87a 640 x 350 16 4452 *Mike-D *
- NAGEL04 .GIF GIF87a 640 x 350 16 5598 *Mike-D *
-
- 12 graphic files found.
-
-
- This checked all the files on A: drive with the GIF extension, all the files
- on B: drive, and all the files matching NAGEL??.GIF on the current drive
- to see if they were graphic files. Note that even though the file called
- BUGSBUNN.GIF was a Windows 3.0 bitmap it knew and put that under the format
- column. So no matter what the file name or extension is WHATPIC will find
- its true format.
-
- The last column is the volume label of the drive the file was found on.
- I keep my GIF files on numbered floppies and this way I can keep track of
- where my files are.
-
-
- WHAT DOES THE OUTPUT MEAN?
- --------------------------
- The output of WHATPIC is mostly straightforward. The file name, type, height,
- width, number of colors and filesize will be printed. If the number of
- colors exceeds 16 bits i.e. more than 65536, WHATPIC will just put the number
- of bits per pixel. (Printing out that my JFIFs had 16777216 colors became
- worthless...) Other various quirks will be described for each individual
- file type below:
-
-
- BMP - Microsoft Windows 3.0 bitmap
-
- I would assume that Windows 3.1 bitmaps will not be any different so
- technically it should say Windows 3.? bitmaps but I'm not terribly technical.
-
-
- FLI - Autodesk Animator animation file
-
- This is the one that "does not belong" because it is not just a graphic file.
- These are animation files created original by Autodesk. The current version
- of WHATPIC only handles the 320x200 FLIs so the size is never different, but
- instead of telling you the number of colors the value in the colors column
- is the number of frames in the animation.
-
-
- GIFxxxy - Compuserve's Graphics Interchange Format
-
- This is probably the most abundant of the graphic formats. There are two
- versions out right now so the 'xxx' is either 87a or 89a. GIFs can be
- interlaced so the 'y' will be an I if it is.
-
-
- ILBM - Deluxe Paint/AMIGA IFF InterLeaved BitMap
-
- The technical manual I used to break these down said that Electronic Arts
- uses this standard. IFF stands for Interchange Format Files and an
- InterLeaved BitMap is just one kind of IFF. Amiga seems to use these
- quite a bit as well as the aforementioned Deluxe Paint.
-
-
- IMG/GEM - Ventura Publisher file
-
- These are all 2 color files. If you find one with more than 2 colors,
- someone lied to me... Anyway these are usually associated with the GEM
- windowing environment and Ventura Publisher.
-
-
- JFIFx.x - JPEG File Interchange Format
-
- These are the "Future" of pictures. JPEG stands for Joint Photographic
- Experts Group. The JFIF is a new graphics standard using lossy compression.
- That means that the resulting file may not be exactly the same as the
- original. It uses baseline and extended-sequential compression(yeah right).
- What it boils down to is that you can get LARGE pictures with 24 bits of
- color that are extremely SMALL in size...example:
-
- Filename Format Width Height Colors Filesize Drive Label
- ------------ ------ ----- ------ ------ -------- -----------
- 968A .JPG JFIF1.1 893 x 663 24bit 39073
- 968A .GIF GIF87a 893 x 663 256 299675
-
- So this format seems to have a great future!
-
-
- MAC - MacPaint file
-
- These files will all be 576x720 with 2 colors. That made decoding them for
- WHATPIC quite easy.
-
-
- PBM - Deluxe Paint II enhanced IFF BitMap
-
- I stumbled across this format with the program VPIC 4.5 (C) by Bob Montgomery.
- I converted one of my pictures to this format and looked at its header.
- Just within the header the only change between the PBM and ILBM seemed to
- be that PBM was written instead of ILBM. Easy enough so I added it to
- WHATPIC.
-
-
- PCXx.x - PC Paintbrush/Zsoft file
-
- These files are also abundant. The 'x.x' will be the version of the file,
- currently either 2.5, 2.8, 3.0 or ?.?. The ?.? denotes WHATPIC didn't
- recognize the version, the file may or may not be valid.
-
-
- PIC - PC Paint/Pictor file
-
- These have been around a while. Nothing outrageous about these. The format
- was retrieved from a document from Microtex Industries, Inc. The date on
- my copy was February 9, 1988 so I'm not sure what updates have occurred.
-
-
- RIX - ColoRIX VGA Paint file
-
- So far the only place I have seen these files is with the ColoRIX VGA
- Paint package itself. The format information was in the Appendix E of
- the manual.
-
-
- TARGA - Truevision Targa file
-
- TARGA files were pretty difficult. There are very few bits which tell you
- that it is a TARGA file, I noted that some of my utilities were TARGA
- files with heights and widths of over 100000 so I do not guarantee they
- will all be valid TARGAs. The 'xx' in the output denotes the image type:
-
- 1 - Uncompressed, color-mapped image
- 2 - Uncompressed, RGB image
- 3 - Uncompressed, black and white image
- 9 - Runlength encoded color-mapped image
- 10 - Runlength encoded RGB image
- 11 - Compressed, black and white image
- 32 - Compressed color-mapped data, using Huffman, Delta, and runlength
- encoding
- 33 - Compressed color-mapped data, using Huffman, Delta, and runlength
- encoding (4-pass quadtree-type process)
-
- This info was taken from Appendix C of the Truevision Technical Guide.
- Don't ask me what most of the above means but I assume it is pertinent
- to certain people.
-
-
- TIFFx - Tagged Image File Format
-
- TIFF files are quite interesting. The first byte of the header tells you
- whether the remaining file is stored in Big-Endian or Little-Endian format.
- Therefore the 'x' in the output will be an I (to denote INTEL) or an M
- (to denote MOTOROLA). Either format is readable by most popular conversion
- and viewing programs.
-
-
-
- PROGRAMMING NOTES
- ------------------
- WHATPIC.COM was written entirely in Turbo C and was compiled with
- BORLAND C++ 2.0 using the tiny memory module. Why not written in C++?
- Well I've noticed that school really takes up so much of my time that I
- don't have time to learn useful things...
-
-
- WHERE CAN I GET THESE FORMATS?
- ------------------------------
- For most of the formats covered here the specifications are available on
- the INTERNET. At titan.rice.edu (128.42.1.30) in /public/graphics.formats
- you can find info about GIF, FLI, IFF, PCX, TARGA, TIFF and many others
- not used here. For information about the JPEG/JFIF picture format the
- group that has been working on it has all their source code and specs
- available on ftp.uu.net (137.39.1.9) in the /graphics/jpeg directory. As
- of March 17, 1992, Version 3 of their code was available.
-
-
- HISTORY
- -------
-
- VERSION 1.0 December 1990
- -First release
-
- VERSION 2.0 March 1992
- -Added a LOT of new formats including:
- Autodesk Animations, Amiga IFF, JFIF, Deluxe Paint II, PC Paint, ColoRIX,
- and TARGA.
-
- -Added check for interlaced GIFs.
-
- -Added format version numbers to output.
-
- -Fixed bug with PCX EGA files.
-
- -Hopefully made code more efficient.
-
-
- THANK YOUS AND HELP SOURCES
- ---------------------------
- I have to give credit to an extremely helpful book.
- It is a book called:
-
- "Bit-Mapped Graphics"
- Written by Steve Rimmer
- Published by Windcrest Books
-
- It is an excellent source of graphic file information which covers MacPaint,
- GEM/IMG, PC Paintbrush, GIF, and TIFF formats. It has many C and Assembly
- examples for picture viewers, encoders, decoders and converters. I highly
- recommend it if you want to do any graphic manipulation programs or just want
- to find out about most major formats.
-
- After I squeezed as much information out of the above book I took to
- pestering people on the USENET. I want to say "Thanks" to all those who
- E-Mailed and Flamed me. There is an abundance of information out there on
- the NET.
-
-
- FEEDBACK
- --------
- This program is FREEWARE. (Yippee! Hurrah!) I have 3 requests
- though:
-
- 1) Support the BBS or newsgroup you got it from!
-
- 2) Give me some FEEDBACK. Do you like the program? Do you use the program?
- Did you find a bug? Did you find a problem? etc.
-
- 3) And lastly I would like to know how far this program gets. It was started
- in Las Cruces, New Mexico. Just drop me a note:
-
- Mike Dowell
- 604 Zecca
- Gallup, NM 87301
-
-
- If you have any other questions or comments just leave a message on the
- Waterfront West Wildcat! BBS in Las Cruces, NM (505) 521-4528.
- or on INTERNET:
- mdowell@dante.nmsu.edu
- mdowell@isleta.nmsu.edu
-
-
- WARRANTY AND GUARANTEE
- ----------------------
- Basically, there are none. Anyone can use it and as far as I know it works
- fine. I claim no responsibility for any damage or unknown results from the
- use of this program. I also do not guarantee that this program will work
- on every machine, it should, but you never know.
-
- So enjoy!!!
-