Skip to content

Commit 07018aa

Browse files
committed
Fix k_means tests
1 parent 219bc08 commit 07018aa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/image.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7434,7 +7434,7 @@ defmodule Image do
74347434
[39, 187, 56],
74357435
[96, 93, 108],
74367436
[97, 148, 178],
7437-
[107, 70, 38],
7437+
[107, 70, 39],
74387438
[144, 119, 151],
74397439
[153, 117, 89],
74407440
[171, 179, 200],
@@ -7541,7 +7541,7 @@ defmodule Image do
75417541
[39, 187, 56],
75427542
[96, 93, 108],
75437543
[97, 148, 178],
7544-
[107, 70, 38],
7544+
[107, 70, 39],
75457545
[144, 119, 151],
75467546
[153, 117, 89],
75477547
[171, 179, 200],

test/image_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ defmodule Image.Test do
140140
|> multiply!(finish)
141141
|> add!(multiply!(d, -1) |> add!(1) |> multiply!(start))
142142

143-
{:ok, out} = Operation.copy(out, interpretation: :VIPS_INTERPRETATION_LAB)
143+
{:ok, out} = Operation.copy(out, interpretation: :VIPS_INTERPRETATION_sRGB)
144144

145145
out_path = Temp.path!(suffix: ".png", basedir: dir)
146146
assert :ok = Vimage.write_to_file(out, out_path)
-902 KB
Loading

0 commit comments

Comments
 (0)