Reputation: 181
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?
Upvotes: 0
Views: 1188
Reputation: 207465
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
Upvotes: 1