2008-02-02

The TIFF iamge file from Windows XP, re-build this IFD and verify the content

無法顯示錯誤的圖片「http://www.fileformat.info/format/tiff/gtiff03.png」
re-group those bytes following, and get to the place about what it looks like, what TAG is and what is intended to be.


dw 0x0013 : NumDirEntries

dw 0x00FE : NewSubFileType, 1st TagId
dw 0x0004 : DataType
dd 0x00000001 : DataCount
dd 0x00000002 : DataOffset

dw 0x0100 : Gray-scale, ImageWidth, 2nd TagID.. and so on
dw 0x0004 ; 32bit, unsigned
dd 0x00000001
dw 0x000006C0 ;image Width, 1728

dw 0x0101 ;Gray-scale, ImageLength
dw 0x0004 ; 32bit, unsigned
dd 0x00000001
dd 0x00000484 ;image length, 1156

dw 0x0102 ; BitsPerSample
dw 0x0003 ; 16bit, unsigned
dd 0x00000001
dd 0x00000001 ; 1 bit

dw 0x0103 ; Gray-scale, Compression
dw 0x0003
dd 0x00000001
dd 0x00000004 ; group 4

dw 0x0106 ; Gray-scale, PhotometricInterpretation
dw 0x0003
dd 0x00000001
dd 0x00000000 ; WhiteIsZero

dw 0x010A ; FillOrder
dw 0x0003
dd 0x00000001
dd 0x00000002 ;LSB 2 MSB

dw 0x0111 ; StripOffsets
dw 0x0004 ; 32bit, unsigned
dd 0x00000001
dd 0x00000008 ; 8

dw 0x0115 ; Gray-scale, SamplesPerPixel
dw 0x0003 ; 16 bit
dd 0x00000001
dd 0x00000001 ; 1 bit

dw 0x0116 ;Gray-scale, RowsPerStrip
dw 0x0004
dd 0x00000001
dd 0x00000484 ; 1156

dw 0x0117 ; Gray-scale, StripByteCounts
dw 0x0004
dd 0x00000001
dd 0x00001620 ; 5664

dw 0x011A ; Gray-scale, XResolution
dw 0x0005 ; two 32bit unsigned
dd 0x00000001
dd 0x00001716 ; offset of file image

dw 0x011B ; Gray-scale, YResolution
dw 0x0005
dd 0x00000001
dd 0x0000171E ; offset of file image

dw 0x0124 ; T4Options or Group3Options
dw 0x0004
dd 0x00000001
dw 0x00000005 ; 5

dw 0x0128 ; Gray-scale, ResolutionUnit
dw 0x0003 ; 16 bits
dd 0x00000001
dd 0x00000002 ; inch

dw 0x0129 ; PageNumber
dw 0x0003
dd 0x00000002
dd 0x00000000 ; 0

dw 0x0131 ; Software
dw 0x0002
dd 0x00000020 ; 32 char
dd 0x00001726 ; offset of file image

dw 0x0147 ; Class F, CleanFaxData
dw 0x0003
dd 0x00000001
dd 0x00000000 ;0

dw 0x0148 : Class F, ConsecutiveBadFaxLine, 19th TagID
dw 0x0003
dd 0x00000001
dd 0x00000000 ; 0

dd 0x00000000 : NextIFDOffset

:ASCII code - SFax, what is ?
53 66 61 78

CC 00 00 00 01 00 00 00 : XResolution 0x0001, 0x00cc = 204
62 00 00 00 01 00 00 00 : YResolution 0x0001, 0x0062 = 98

:ASCII code - Windows NT Fax Server
57 69
6E 64 6F 77 73 20 4E 54-20 46 61 78 20 53 65 72
76 65 72

00 20 20 20 20-20 20 20 20 20 00

沒有留言:

張貼留言