Skip to content

Commit

Permalink
Don't recalculate IFD offsets in close()
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Sep 10, 2024
1 parent e4ffbe8 commit 88b846d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public void close() throws IOException {
long nextPointer = index < allOffsets.length ? allOffsets[index] : 0;

saver.overwriteIFDOffset(in, allOffsets[mainIFDIndex], nextPointer);
saver.overwriteIFDValue(in, currentFullResolution, IFD.SUB_IFD, subIFDOffsets);
saver.overwriteIFDValue(in, allOffsets[mainIFDIndex], IFD.SUB_IFD, subIFDOffsets, true);
}

mainIFDIndex++;
Expand Down

0 comments on commit 88b846d

Please sign in to comment.