title: Tiff Analyzer
body: <p>I am writing a program to convert some data, mainly a bunch of Tiff images.  Some of the Tiffs seems to have a minor problem with them.  They show up fine in some viewers (Irfanview, client's old system) but not in others (Client's new system, Window's picture and fax viewer).  I have manually looked at the binary data and all the tags seem ok.  Can anyone recommend an app that can analyze it and tell me what, if anything, is wrong with it?</p>
  
  <p>Also, for clarity sake, I'm only converting the data about the images which is stored seperately in a database and copying the images, I'm not editting the images myself, so I'm pretty sure I'm not messing them up.</p>
  
  <p><b>UDPATE:</b>
  For anyone interested, here are the tags from a good and bad file:</p>
  
  <p>BAD<br>
  Tag                       Type   Length   Value<br>
  256 Image Width           SHORT    1      1652<br>
  257 Image Length          SHORT    1      704<br>
  258 Bits Per Sample       SHORT    1      1<br>
  259 Compression           SHORT    1      4<br>
  262 Photometric           SHORT    1      0<br>
  266 Fill Order            SHORT    1      1<br>
  273 Strip Offsets         LONG     1      210      (d2 Hex)<br>
  274 Orientation           SHORT    1      3<br>
  277 Samples Per Pixel     SHORT    1      1<br>
  278 Rows Per Strip        SHORT    1      450<br>
  279 Strip Byte Counts     LONG     1      7264     (1c60 Hex)<br>
  282 X Resolution          RATIONAL 1      &lt;194>    200 / 1 = 200.000<br>
  283 Y Resolution          RATIONAL 1      &lt;202>    200 / 1 = 200.000<br>
  284 Planar Configuration  SHORT    1      1<br>
  296 Resolution Unit       SHORT    1      2<br></p>
  
  <p>Good<br>
  Tag                       Type   Length   Value<br>
  254 New Subfile Type      LONG     1      0        (0 Hex)<br>
  256 Image Width           SHORT    1      1193<br>
  257 Image Length          SHORT    1      788<br>
  258 Bits Per Sample       SHORT    1      1<br>
  259 Compression           SHORT    1      4<br>
  262 Photometric           SHORT    1      0<br>
  266 Fill Order            SHORT    1      1<br>
  270 Image Description     ASCII    45     256<br>
  273 Strip Offsets         LONG     1      1118     (45e Hex)<br>
  274 Orientation           SHORT    1      1<br>
  277 Samples Per Pixel     SHORT    1      1<br>
  278 Rows Per Strip        LONG     1      788      (314 Hex)<br>
  279 Strip Byte Counts     LONG     1      496      (1f0 Hex)<br>
  280 Min Sample Value      SHORT    1      0<br>
  281 Max Sample Value      SHORT    1      1<br>
  282 X Resolution          RATIONAL 1      &lt;301>    200 / 1 = 200.000<br>
  283 Y Resolution          RATIONAL 1      &lt;309>    200 / 1 = 200.000<br>
  284 Planar Configuration  SHORT    1      1<br>
  293 Group 4 Options       LONG     1      0        (0 Hex)<br>
  296 Resolution Unit       SHORT    1      2<br></p>