Kurz: gibt Bilddimensionen OHNE Datatypes aus
Short: Shows picture dimensions without datatypes
Author: Christian Effenberger (youcan@amclust.de)
Uploader: Christian Effenberger (youcan@amclust.de)
Version: 1.2 (12-Nov-2003)
Type: gfx/misc
Origin: www.amclust.de/software/archive/
Requires: OS 2.x , CanDo Lib 3.00x
PURPOSE
GetImageInfo 1.2 (12.11.2003), © 2001-2003 by Christian Effenberger
The archive contains a small program to determine picture
dimensions without the use of datatypes (headers only).
Since I am working a lot with images that were included in
HTML documents, it is useful to list image dimensions in a
formated string to redirect the output back into the Document.
Supported formats: BMP GIF IFF JPEG PBM PCX PNG PSD SUN TGA TIF XBM
Adobe Photoshop® Format - PSF PSD
Graphics Interchange Format - GIF 87a/89a
Interchange File Format - ACBM DEEP FAXX ILBM
PBM RGBN RGB8 YUVN
Joint Photografic Expert Group - JPEG JFIF
Paintbrush® Format - PCX
Portable Bit/Grey/Pixmap - PBM PGM PPM PNM
Portable Network Graphic - PNG
Silicon Graphics® Image - SGI
Sun Rasterfile Format - SUN
Tagged Image File Format - TIFF
TrueVision® Targa - TARGA
Windows® Bitmap Format - BMP
X-Window® Bit/Pixmap Format - XBM XPM
If started from Workbench - a FileRequester is poping up, asking
for an Image file and then showing all Informations in a Reqeuster.
If it's used through command line, certain special %-codes are available.
INSTALL
Simply unpack the archive to anywhere you want.
I prefer to copy the executable to C:.
REQUIREMENTS
- OS 2.x
- CanDo Lib 3.00x
- minimum of memory (GetImageInfo reads only the header)
USAGE
GetImageInfo FILE/A[,STRING]
If started from Workbench - a FileRequester is poping up, asking
for an Image file and then showing all Informations in a Reqeuster.
If it's used through command line, certain special %-codes are available:
The option STRING allows you to define an own output string. The default
format string is...
"%n: %w x %h [%f]"
The format types are:
%n name of the file (the filename without path)
%p full path including trailing '/' and ':'
(even, when you didn't provided one)
%r relative path including trailing '/'
%w width of image
%h height of image
%f short format of image (i.e. JPEG/JFIF)
%e expanded format of image (i.e. Joint Photografic Expert Group)
%d file date (DD-MMM-YYYY
%s file size (Bytes)
%c file comment
%a aspect ratio (4:3)
%l linefeed ($char 10)
%t tabulator ($char 9)
use double " inside of STRING (i.e. "%n ""string"" %f")
EXAMPLES
GetImageInfo file.gif
OUTPUT » file.gif: 256 x 256 [GIF]
GetImageInfo file.gif "
"
OUTPUT »
GetImageInfo file.gif "Image: %n%lDimension: %w×%h%lFormat: %f (%e)%lAspect Ratio: %a %lSize: %s Bytes%lDate: %d"
OUTPUT » Image: file.gif
Dimension: 256×256
Format: GIF (Graphics Interchange Format)
Aspect Ratio: 1:1
Size: 16582 Bytes
Date: 21-May-1999
NOTE
Sometimes GetImageInfo coul'd not determine Photoshop JPEG's, cause Adobe
uses properitary chunks (totally sensless to the Web) in front of the width
and height including chunk. Load these images and save them again as JPEG
to fix the problem.
AUTHOR
Christian Effenberger
Suedstraße 2
41564 Kaarst
G E R M A N Y
0049-(0)2131-669392
youcan@amclust.de