From d740dcce7d967d025c4100611cc7a4632aa3fc3a Mon Sep 17 00:00:00 2001 From: Alexander Piskun Date: Wed, 20 Nov 2024 12:18:36 +0300 Subject: [PATCH] libheif 1.19.5 detects these images as monochrome --- tests/images/heif/{xmp.heif => L_xmp.heif} | Bin .../{xmp_latin1.heic => L_xmp_latin1.heic} | Bin tests/metadata_xmp_test.py | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename tests/images/heif/{xmp.heif => L_xmp.heif} (100%) rename tests/images/heif_other/{xmp_latin1.heic => L_xmp_latin1.heic} (100%) diff --git a/tests/images/heif/xmp.heif b/tests/images/heif/L_xmp.heif similarity index 100% rename from tests/images/heif/xmp.heif rename to tests/images/heif/L_xmp.heif diff --git a/tests/images/heif_other/xmp_latin1.heic b/tests/images/heif_other/L_xmp_latin1.heic similarity index 100% rename from tests/images/heif_other/xmp_latin1.heic rename to tests/images/heif_other/L_xmp_latin1.heic diff --git a/tests/metadata_xmp_test.py b/tests/metadata_xmp_test.py index 20e5e988..753db9b8 100644 --- a/tests/metadata_xmp_test.py +++ b/tests/metadata_xmp_test.py @@ -110,7 +110,7 @@ def test_heif_xmp_add_remove(): @pytest.mark.skipif(not helpers.hevc_enc(), reason="Requires HEVC encoder.") def test_heif_xmp_latin1_with_zero_byte(): - im = Image.open("images/heif_other/xmp_latin1.heic") + im = Image.open("images/heif_other/L_xmp_latin1.heic") out_heif = BytesIO() im.save(out_heif, format="HEIF") out_im = Image.open(out_heif)