Skip to content

Commit

Permalink
Merge pull request #9032 from OSGeo/backport-9031-to-release/3.8
Browse files Browse the repository at this point in the history
[Backport release/3.8] jpegxl.py: make test pass with latest libjxl master
  • Loading branch information
rouault authored Jan 4, 2024
2 parents 4bea5cd + 95bb528 commit a303cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autotest/gdrivers/jpegxl.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ def test_jpegxl_apply_orientation(orientation):
assert ds.RasterXSize == 3
assert ds.RasterYSize == 5
vals = struct.unpack("B" * 3 * 5, ds.ReadRaster())
vals = [1 if v else 0 for v in vals]
vals = [1 if v >= 128 else 0 for v in vals]
assert vals == [1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0]
if orientation != 1:
assert ds.GetMetadataItem("EXIF_Orientation", "EXIF") is None
Expand Down

0 comments on commit a303cef

Please sign in to comment.