Skip to content

Commit 09e38ff

Browse files
committed
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
1 parent 6959cc9 commit 09e38ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/write_spec.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ describe("test image write", function()
99
end)
1010

1111
describe("to file", function()
12-
local array = { 1, 2, 3, 4 }
13-
local im = vips.Image.new_from_array(array)
12+
local im = vips.Image.black(100, 100)
1413
local tmp_png_filename = ffi.os == "Windows" and os.getenv("TMP") .. "\\x.png" or "/tmp/x.png"
1514
local tmp_jpg_filename = ffi.os == "Windows" and os.getenv("TMP") .. "\\x.jpg" or "/tmp/x.jpg"
1615

0 commit comments

Comments
 (0)