>  Targa files have no magic header, and cannot be reliably identified that way.

"New" Targa files have a magic string at the end of the file[1], plus
a bunch of extra information.  The Targa specification tells you how
and where to expect it.  It does says that for old files you are
basically screwed :-(


[1] Yes, this is broken.

Reply via email to