Skip to content

Commit

Permalink
rewrite some comments
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <[email protected]>
  • Loading branch information
Yay295 and radarhere authored Sep 20, 2024
1 parent 362ffaf commit 8b6fa92
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Tests/test_file_tiff_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,15 @@ def test_save_multiple_stripoffsets() -> None:
# number of tags == 1
b"\x01\x00"
# tag id (2 bytes), type (2 bytes), count (4 bytes), value (4 bytes)
# == 273, 4, 2, 18
# == TiffImagePlugin.STRIPOFFSETS, TiffTags.LONG, 2, 18
# the value is the index of the tag data
# TiffImagePlugin.STRIPOFFSETS, TiffTags.LONG, 2, 18
# where STRIPOFFSETS is 273, LONG is 4
# and 18 is the offset of the tag data
b"\x11\x01\x04\x00\x02\x00\x00\x00\x12\x00\x00\x00"
# end of tags marker
# end of entries
b"\x00\x00\x00\x00"
# tag data == (149, 482) == (123 + 26, 456 + 26)
# 26 is the number of bytes before this data
# 26 is the total number of bytes output,
# the offset for any auxiliary strip data that will then be appended
# (123 + 26, 456 + 26) == (149, 482)
b"\x95\x00\x00\x00\xe2\x01\x00\x00"
)

Expand Down

0 comments on commit 8b6fa92

Please sign in to comment.