NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #605 (closed defect: fixed)

Opened 2010-11-19T10:40:50-06:00

Last modified 2010-11-23T19:31:00-06:00

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 2010-11-23T19:31:00-06:00 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.