title: imagemagick convert : tiff warnings / multiple output files created
body: <p>I am working on a java application that uses the ImageMagick convert utility to convert tiff to jpg. </p>
  
  <p>Our workflow is to first do the tiff->jpg; create buffered img obj in order to get dimensions, then scale new dimensions, and run convert again to resize with the new dimensions and a few other options. </p>
  
  <p>This works well the vast majority of the time, but in some cases I'm getting some tiff warnings, and while the img conversion is ultimately successful, convert creates a couple of interim images that are a problem. Here is what it looks like on the command line:</p>
  
  <pre><code>&gt;convert testImg.tif test.jpg
  convert.exe: Unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory @ warning/tiff.c/TIFFWarnings/824.
  convert.exe: Unknown field with tag 34391 (0x8657) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824.
  convert.exe: Unknown field with tag 34392 (0x8658) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824.
  convert.exe: testImg.tif: Null count for "Tag 34391" (type 1, writecount -3, pascount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/562.
  convert.exe: Unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory @ warning/tiff.c/TIFFWarnings/824.
  </code></pre>
  
  <p>when starting with </p>
  
  <pre><code>testImg.tif
  </code></pre>
  
  <p>the outputs are </p>
  
  <pre><code>test-0.jpg
  test-1.jpg
  </code></pre>
  
  <p>our workaround is to do the first conversion tif->gif then gif->jpg and that seems to fix it, but was wondering if anyone had come across this particular issue. </p>
  
  <p>As an aside, we're using the convert util because we found JMagick to be very unreliable. If anyone has successfully used that, would be interested to hear any ideas about how to inforporate.</p>
  
  <p>thanks!
  bp</p>