Skip to content

Commit

Permalink
2022.09.20 (1.53u18; TIFFs taller than 65535)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasband committed Sep 21, 2022
1 parent b21afaf commit d9d056a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ij/ImageJ.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class ImageJ extends Frame implements ActionListener,

/** Plugins should call IJ.getVersion() or IJ.getFullVersion() to get the version string. */
public static final String VERSION = "1.53u";
public static final String BUILD = "15";
public static final String BUILD = "18";
public static Color backgroundColor = new Color(237,237,237);
/** SansSerif, 12-point, plain font. */
public static final Font SansSerif12 = new Font("SansSerif", Font.PLAIN, 12);
Expand Down
2 changes: 1 addition & 1 deletion ij/io/RoiDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public Roi getRoi() throws IOException {
case polygon: case freehand: case traced: case polyline: case freeline: case angle: case point:
//IJ.log("type: "+type);
//IJ.log("n: "+n);
//IJ.log("rect: "+left+","+top+" "+width+" "+height);
//ij.IJ.log("rect: "+left+","+top+" "+width+" "+height);
if (n==0 || n<0) break;
int[] x = new int[n];
int[] y = new int[n];
Expand Down
2 changes: 1 addition & 1 deletion ij/io/TiffEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void writeIFD(OutputStream out, int imageOffset, int nextIFD) throws IOException
}
writeEntry(out, TiffDecoder.STRIP_OFFSETS, 4, 1, imageOffset);
writeEntry(out, TiffDecoder.SAMPLES_PER_PIXEL,3, 1, samplesPerPixel);
writeEntry(out, TiffDecoder.ROWS_PER_STRIP, 3, 1, fi.height);
writeEntry(out, TiffDecoder.ROWS_PER_STRIP, 4, 1, fi.height);
writeEntry(out, TiffDecoder.STRIP_BYTE_COUNT, 4, 1, imageSize);
if (fi.unit!=null && fi.pixelWidth!=0 && fi.pixelHeight!=0) {
writeEntry(out, TiffDecoder.X_RESOLUTION, 5, 1, tagDataOffset);
Expand Down
3 changes: 3 additions & 0 deletions release-notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<li> Thanks to Nayana Gaur, fixed a bug that caused ROIs with
x or y coordinates greater than 60,535 and less than 65,535 to
be saved incorrectly.
<li> Thanks to Christoph Gohike, fixed a bug that caused ImageJ to
create TIFF files with invalid RowsPerStrip tags when the image
height was greater than 65535.
<li> Thanks to Mark Hiner, fixed a 1.53t regression that caused
the <i>Image&gt;Stacks&gt;Z Project</i> command to ignore the last
slice when doing "Average" projection of 32-bit stacks.
Expand Down

1 comment on commit d9d056a

@imagesc-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/rois-randomly-jumping-around-image-when-being-reopened-from-saved-roi-sets/71760/18

Please sign in to comment.