NAME
output_image_for_html - Makes html for images
SYNOPSIS
#include "i/i_html.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int output_image_for_html
(
const KJB_image *ip,
FILE *index_fp,
const char *dir,
const char *file_name
);
DESCRIPTION
This routine writes an image into directory "dir", and writes an html line
linking to it into the file pointed to by "index_fp". The format of the image
file is determined by the internal option "html-image-file-format" which
takes as an argument an image file format suffix. The default is "gif". The
option can be set by the user in programs which call set_image_html_options()
as part of their user option functions, or by the programmer directly
throught that function. Tiff is not that well supported by browsers (yet).
If the image location requires a full URL, then the similar routine
output_image_for_html_2() should be used instead.
RETURNS
NO_ERROR on success, and ERROR on failure with an appropriate error
message being set.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
output_image_for_html_2