Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Tests/images/cmx3g8_wv_1998.260_0745_mcidas.tiff
Binary file not shown.
2 changes: 1 addition & 1 deletion Tests/test_file_mcidas.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ def test_valid_file() -> None:

# Assert
assert im.format == "MCIDAS"
assert im.mode == "I"
assert im.mode == "I;16B"
assert im.size == (1800, 400)
assert_image_equal_tofile(im, saved_file)
4 changes: 1 addition & 3 deletions src/PIL/McIdasImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ def _open(self) -> None:
if w[11] == 1:
mode = rawmode = "L"
elif w[11] == 2:
# FIXME: add memory map support
mode = "I"
rawmode = "I;16B"
mode = rawmode = "I;16B"
elif w[11] == 4:
# FIXME: add memory map support
mode = "I"
Expand Down
Loading