Ticket #605 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

OMEXMLMetadata objects used by OMETiffWriter can not be re-used

Reported by: melissa Owned by: melissa
Priority: major Milestone: bio-formats-4.3
Component: bio-formats Severity: serious
Keywords: Cc: cfuller@…
Blocked By: Blocking:

Description

This will fail:

OMEXMLMetadata meta = //;

ImageWriter writer = new ImageWriter();
writer.setMetadataRetrieve(meta);
writer.setId("foo.ome.tiff");
writer.saveBytes(0, image);
writer.close();

writer.setMetadataRetrieve(meta);
writer.setId("bar.ome.tiff");
writer.saveBytes(0, image);
writer.close();

because the writer strips out the (required) BinData element.

Change History

comment:1 Changed 9 years ago by melissa

  • Status changed from new to closed
  • Resolution set to fixed

(In [7239]) Remove BinData elements from a copy of the writer's MetadataRetrieve, instead of modifying the MetadataRetrieve directly. Closes #605.

Note: See TracTickets for help on using tickets.