Information about me and my services Download free programs Goto homepage of Jeroen Kessels, internet engineer Hobby area Email, address, and phone information Copyright 2005 J.C. Kessels Goto homepage of Jeroen Kessels, internet engineer Email, address, and phone information


Imageinfo v1.4


Imageinfo is a cgi-bin program that will return a page about an image. The page contains information such as the filename of the image, the path on harddisk, width, height, filesize, URL (which you can cut and paste into html), and if you like you can see the image as a background. I use this program in my image archive, to -obviously- get more information about an image.

 *  Download imginfo-1.4.zip for Windows 95/NT/2000 (36kb)
 *  Download imginfo-1.4.tar.gz for Unix (4kb)

The program is written in C, and should compile on just about any Unix flavor. It will handle all kinds of images, but can only extract the width and height from gif images.

Usage


/cgi-bin/imginfo.exe

If you start the cgi-bin/imginfo.exe program without parameters then you will get a usage page.

/cgi-bin/imginfo.exe?path=PATH

The PATH parameter specifies the path on harddisk to the image. For security reasons it must be within the ROOTDIR, which is a setting in the source. The program is by default compiled with ROOTDIR="c:\home\".

/cgi-bin/imginfo.exe?path=PATH&url=URL

The program will do it's best to determine what the URL for an image is, but may not succeed. You can specify the URL explicitly with the URL parameter.

/cgi-bin/imginfo.exe?path=PATH&background=yes

The image will be displayed as a background image if the "background" parameter is "yes".

Example


Click on this picture to see the program in action:

Goto my  *  Image Archive to see Imginfo in action. Also see my  *  Imgindex program, which will automatically generate the index.html files for all the images in a directory and all it's subdirectories.

Installation


The program is by default configured for ROOTDIR = "c:\home\". This means that you can only use the program on images in that directory, or a subdirectory there. I have done this for security reasons. If this directory is allright for you, and you are a Windows95/NT user, then all you have to do is copy the imginfo.exe program into your cgi-bin directory.

To change the ROOTDIR you will have to edit this setting in the source "imginfo.c". Then run 'make' on the Unix commandline.