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: |
|
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.