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 #387 (closed defect: fixed)

Opened 2009-04-24T16:10:49-05:00

Last modified 2009-07-04T12:51:48-05:00

Behavior when overcropping is inconsistent

Reported by: curtis Owned by: melissa
Priority: trivial Milestone: bio-formats-4.1
Component: bio-formats Severity: minor
Keywords: Cc:
Blocked By: Blocking:

Description

It is possible to "overcrop" by specifying an x,y,w,h larger than the size of the image plane. However, what happens when you do so depends on the file format.

For example, for OME-TIFF, it pads the extra space with zeroes. For Bio-Rad PIC, it bleeds into future image planes, and appends garbage to the final image plane. For SDT, ArrayIndexOutOfBoundsException is thrown.

Though this is somewhat a case of "garbage in, garbage out," ideally we should still choose a defined behavior for this situation and ensure all readers behave as appropriate.

Change History

comment:1 Changed 2009-06-10T12:26:00-05:00 by melissa

  • Milestone set to bio-formats-4.1.0

comment:2 Changed 2009-07-04T12:51:48-05:00 by melissa

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

As of r5210, all readers throw an exception if the cropping parameters are invalid.