From kde-devel Sun Nov 13 15:40:21 2005 From: Thorsten Schnebeck Date: Sun, 13 Nov 2005 15:40:21 +0000 To: kde-devel Subject: Re: need this in KDE mime magic file Message-Id: <200511131640.21884.thorsten.schnebeck () gmx ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=113189646428656 Am Samstag 12 November 2005 00:30 schrieb Dirk Mueller: > On Saturday 29 October 2005 17:32, Thorsten Schnebeck wrote: > > > ... if I come to the same conclusion? > > > > Same conclusion? :-) > > Hmm, I'm not convinced. Those *are* tiff files after all, no? So I asked a GURU :-) > Subject: Re: a simple question :-) > Date: Sonntag 13 November 2005 14:13 > From: Phil Harvey > To: phil@physics.queensu.ca, thorsten.schnebeck@gmx.net > > Hi Thorsten, > > It would definitely be better to check the offset first. If > the offset is 16 and the "CR\2\0" exists at byte 8, then you > can be reasonably sure this is a CR2. The chances of false > matching a TIFF are essentially zero. I wouldn't check for > the 'II' though, because Canon may use big-endiann cameras > in the future, so I would also allow the corresponding 'MM' > header in which bytes 4-8 will be in the reverse order. > > - Phil Bye Thorsten >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<