Skip to content

Commit 843a859

Browse files
authored
Fix failing test (#117)
The following test currently fails on CI: 1) Failure: ImageProcessing::Vips::#resize_and_pad#test_0006_accepts thumbnail options [/home/runner/work/image_processing/image_processing/test/vips_test.rb:310]: Expected 1 to be > 3. By using `:entropy` instead of `:centre` the images differ more according to DHash.
1 parent 709bcf7 commit 843a859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/vips_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306

307307
it "accepts thumbnail options" do
308308
pad = @pipeline.resize_and_pad!(400, 400)
309-
crop = @pipeline.resize_and_pad!(400, 400, crop: :centre)
309+
crop = @pipeline.resize_and_pad!(400, 400, crop: :entropy)
310310
refute_similar pad, crop
311311
end
312312

0 commit comments

Comments
 (0)