Andreas Beck writes:
> > I think you should be able to add modules without recompiling the underlying
> > system, so each module will need an init function which will update the table,
> > like in the linux kernel.
>
> Even better: We make a "smart" module that tries to guess the image-type.
> It will then try to load the corresponding handler (using the equivalent of
> /etc/ggi/libggi.conf).
Perhaps I should assimilate my "LibDataType" library into GGI, under a
new name like LibGFFD (generic file format detection). Using suffixes
and magic numbers, it can recognise over 400 file formats, including
the following image formats:
image/gif image/jpeg image/jpeg-hsi
image/tiff image/navy-interchange image/png
image/pcx image/pcx-set image/bmp image/utah-rle
image/portable-bitmap image/portable-graymap
image/portable-pixmap image/portable-anymap
image/xwindows-bitmap image/xwindows-pixmap
image/ilbm image/djvu image/targa image/image-magick
image/artisan image/phigs image/graphics-kernel-system
image/computer-graphics-metafile image/fuzzy-bitmap
image/facsimile image/image-file image/cmu-raster
image/sun-raster image/sgi image/photocd image/quake-sprite
image/mgr image/flexible-image-transport image/lisp-machine
image/image-exchange image/xwindows-dump image/rgb
image/grib image/animator image/fax-qfx image/ipas-img
image/portfolio image/pds image/windows-metafile
image/atari-neo image/atari-degas image/atari-tiny
image/spectrum-smooshed typeimage/computer-eyes
image/black-and-white image/qv10-cam image/colorrix
image/cineon-dpx image/autocad-slide image/photoshop
image/very-ordinary-raster image/xara-web image/windows-icon
image/amiga-icon image/applix-graphic image/xcf
image/island-draw image/acorn-draw image/fig
image/hpgl image/edsun-ceg image/amiga-meta
image/drawing-interchange
Using LibGFFD, this new picture library could detect the filetype, and
then look it up in the gpf.conf file to find which DLL to load to
handle the image.
Any interest in this approach ?
Cheers,
__
\/ Andrew Apted <[EMAIL PROTECTED]>