Adapt TestForeign.test_heifsave
test (#2402)
- `heifsave` defaults to AV1 compression for .avif suffix since commit 8c44863
.
- Test lossless compression mode.
This commit is contained in:
parent
e60f11eb45
commit
b978ed8e8f
@ -1111,13 +1111,11 @@ class TestForeign:
|
||||
|
||||
@skip_if_no("heifsave")
|
||||
def test_heifsave(self):
|
||||
# TODO: Reduce the threshold once https://github.com/strukturag/libheif/issues/533 is resolved.
|
||||
self.save_load_buffer("heifsave_buffer", "heifload_buffer",
|
||||
self.colour, 80, compression="av1")
|
||||
# TODO: perhaps we should automatically set the compression to
|
||||
# av1 when we save to *.avif?
|
||||
#self.save_load("%s.avif", self.colour)
|
||||
self.save_load_file(".avif", "[compression=av1]",
|
||||
self.colour, 80)
|
||||
self.colour, 80, compression="av1",
|
||||
lossless=True)
|
||||
self.save_load("%s.avif", self.colour)
|
||||
|
||||
# uncomment to test lossless mode, will take a while
|
||||
#im = pyvips.Image.new_from_file(AVIF_FILE)
|
||||
|
Loading…
Reference in New Issue
Block a user