From 931db08054d24793c4da35c9a68a30a4c7a6daf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20L=C3=B6tscher?= Date: Wed, 10 Dec 2025 15:31:05 +0100 Subject: [PATCH] Modify image write to file test because of libvips 8.17 issue Conversion from array to b-w colourspace is broken in libvips 8.17 --- spec/write_spec.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/write_spec.lua b/spec/write_spec.lua index 01cbe7d..fff247e 100644 --- a/spec/write_spec.lua +++ b/spec/write_spec.lua @@ -9,8 +9,7 @@ describe("test image write", function() end) describe("to file", function() - local array = { 1, 2, 3, 4 } - local im = vips.Image.new_from_array(array) + local im = vips.Image.black(100, 100) local tmp_png_filename = ffi.os == "Windows" and os.getenv("TMP") .. "\\x.png" or "/tmp/x.png" local tmp_jpg_filename = ffi.os == "Windows" and os.getenv("TMP") .. "\\x.jpg" or "/tmp/x.jpg"