Negative offesets in mime.types

Michael Sweet mike at easysw.com
Thu Oct 7 17:25:23 PDT 2004


Anonymous wrote:
> I'm trying to implement a filter for the Targa (tga) image type, and
> it turns out that the identifying information is at the end of the
> file.  I would like to perform a string match to identify the file,
> but I can't predict the offset from the beginning of the file to do
> this.  Does CUPS support the use of negative offsets in the
> mime.types file to make this happen?

No, but I'm not sure if we could implement it - gzipped files don't
allow efficient random access...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Printing Software for UNIX                       http://www.easysw.com




More information about the cups mailing list