title: Imageio Tiff problems at the moment to upgrade from version 3.3.2 to 3.8.2
body: <p>I was working with your library with version 3.3.2 everything goes well, but for vulnerabilities topics I decided to upgrade to version 3.8.2, but now, I received this problem:</p>
  <pre><code>Unsupported stream metadata format, expected com_sun_media_imageio_plugins_tiff_stream_1.0: [com_sun_media_imageio_plugins_tiff_image_1.0, javax_imageio_1.0]
  </code></pre>
  <p>Looks like the new Object to Metadata is TIFFStreamMetadada instead TIFFImageMetadata, but I don't know how to change from previous version no newer or how to avoid the exception. Can someone support me?</p>
  <p>This is my code.</p>
  <pre><code>IIOMetadata metadata = getTifMetadata(); writer.prepareWriteSequence(metadata);
  
  private IIOMetadata getTifMetadata() throws IIOInvalidTreeException {
  String now = LocalDateTime.now(ZoneId.of(&quot;CST&quot;, ZoneId.SHORT_IDS)).format(dateTimeFormatter);
  // custom tiff attributes
  List&lt;Entry&gt; ifd = new ArrayList&lt;&gt;();
  ifd.add(new TiffAttribute(TIFF.TAG_X_RESOLUTION, new Rational(RESOLUTION_PERCENT),
          TIFF_RATIONAL_TYPE));
  ifd.add(new TiffAttribute(TIFF.TAG_Y_RESOLUTION, new Rational(RESOLUTION_PERCENT),
          TIFF_RATIONAL_TYPE));
  ifd.add(new TiffAttribute(TIFF.TAG_RESOLUTION_UNIT, RESOLUTION_UNIT_DPI, TIFF_NUMBER_TYPE));
  ifd.add(new TiffAttribute(TIFF.TAG_SOFTWARE, TIFF_SOFTWARE_NAME, TIFF_STRING_TYPE));
  ifd.add(new TiffAttribute(TIFF.TAG_DATE_TIME, now, TIFF_STRING_TYPE));
  ifd.add(new TiffAttribute(TIFF.TAG_MODEL, TIFF_MODEL, TIFF_STRING_TYPE));
  
  String standardFormat = IIOMetadataFormatImpl.standardMetadataFormatName;
  IIOMetadata metadata = new TIFFImageMetadata(ifd);
  IIOMetadataNode customMeta = new IIOMetadataNode(standardFormat);
  IIOMetadataNode dimension = new IIOMetadataNode(&quot;Dimension&quot;);
  customMeta.appendChild(dimension);
  
  IIOMetadataNode xSize = new IIOMetadataNode(&quot;HorizontalPixelSize&quot;);
  dimension.appendChild(xSize);
  xSize.setAttribute(&quot;value&quot;, String.valueOf(TIF_DPI));
  
  IIOMetadataNode ySize = new IIOMetadataNode(&quot;VerticalPixelSize&quot;);
  dimension.appendChild(ySize);
  ySize.setAttribute(&quot;value&quot;, String.valueOf(TIF_DPI));
  
  metadata.mergeTree(standardFormat, customMeta);
  return metadata;
  }
  </code></pre>
  <p>Any suggestions? Please.</p>