On Mon, 1 Oct 2001, Andre Poenitz wrote: > On Fri, Sep 28, 2001 at 07:44:35PM +0200, Baruch Even wrote: > > For the sake of format detecion the GI has an internal mapping that > > should be set from a config file one day. Right now it maps: > > JPEG, JPG -> JPG > > GIF -> GIF > > PNG -> PNG > > EPS -> EPS > > and does a by hand detecion of the file content to see if it is an EPS > > file with some weird suffix. > > Can't we use file(1) for games like that?
We can, bt I wanted a simple solution for the moment and I didnt want to parse the output of file, it would be a good idea to use the file spec file and identify using its rules with a built in function so that we dont run file everytime. Baruch
