From: Nigel Jenkins (nigel++at++nebulus-design.co.uk)
Date: 08/07/2003 05:40:31
Hi Rebecca,
Rebecca Lim wrote:
>> I get this error message when I tried to load a pfb
>> file.
>>
>> iopen: bad magic in image file ffd8
>> Does anybody knows the reason?
Yep its a JPEG file!
The magic number is a the two bytes at the start of the file (its a
short), looking at any .rgb file shows a magic number of 0x01DA (0732
octal), but a jpeg file has a 0xffd8 magic number.
Try loading the file in xv or gimp and re-saving as an SGI rgb file.
The command 'file' should tell you what the file contains and its clever
enough to ignore the filename extension and look a little deeper into
the data...
hope this help fix your problem.
cheers
Nigel
-- Nigel Jenkins --- Nebulus-Design nigel++at++nebulus-design.co.uk
This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 03:31:52 PDT