1

When I'm trying to open a TIF file with typical image editors, I get a message that the TIF is corrupt, but it is not.

When I do in bash:

hexdump -c file.tif | head

I get:

0000000   S   F   S   0   1   e   -   �   �   �   z   �   e   3   � 216
0000010   �   S   j   �   W   o 205 021 215 006   � 024   E   �   -   S
0000020   X   �  \0 036 022   � 022   �   k   n 221   �   O 235 031   4
0000030   M   �   �  \0   h   �   �   j   �   J   � 232   �   �   �   ^
0000040 232   >   �   g 031   � 232   ,   W 206   u   z   @   �   6 210
0000050   �   �   k   � 022 220   b   � 026   } 202   �   �   &   m   
0000060   �   � 001   T   ` 034 215   i 215 031   �  \n 222   �   0   �
0000070 202   � 215   �   �   t   �   �   B 210   �   W   �   � 236 221
0000080   /   � 237   b   O 213   a   �  \t   d 231   ;   ~   >   � 023
0000090   �   �   N 030   �   .   ! 033 026   �   C   E   ;  \b 231   ;

What does this mean? How to interpret this?

1
  • 1
    How do you know it is not corrupt? What application is able to open it correctly? Commented Dec 2, 2013 at 16:49

1 Answer 1

1

All TIFF files begin with "II" or "MM" to indicate byte order as Intel or Motorola... yours looks kind of wrong...

If you are on Linux or OSX, try "file file.tif" to see what your system makes of it.

Here is a TIF file from my Mac using "od -xc file.tif"...

0000000      4949    002a    0008    0000    0015    00fe    0004    0001
           I   I   *  \0  \b  \0  \0  \0 025  \0 376  \0 004  \0 001  \0

Is it abandonwarering?

Extract resources from a SFS file

Mmmm... ok it is not a straightforward TIF and not a standard SFS file. I would try running:

od -x  yourfile   | egrep "4949|4d4d"

to see if you find the start of a TIFF file with Intel or Motorola byte ordering. If you do, calculate the offset from the first column, and use that as an offset into "dd". So, if the offset is 512 bytes, I would do

dd if=yourfile of=test.tif bs=512 iseek=1
Sign up to request clarification or add additional context in comments.

10 Comments

Thanks for the reply, bash gives me back : 2007_4_10.tif: data .
Well, it would give TIF file if it thought it was a TIF... so I am saying it agrees that your file is corrupted.
I could guarantee it's not, it's used by a game to handle graphics for a character.
I understand that it might not be a tif file, but I can guarantee that this file is being used by a program to display graphics.
It's not abandonwavering, it's a small game I bought a while ago gazetamatematica.net. I've also tryed using sfs extractors but it did not work.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.