Skip to content

Commit

Permalink
Fix failing test (#117)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
p8 authored Sep 24, 2023
1 parent 709bcf7 commit 843a859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/vips_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@

it "accepts thumbnail options" do
pad = @pipeline.resize_and_pad!(400, 400)
crop = @pipeline.resize_and_pad!(400, 400, crop: :centre)
crop = @pipeline.resize_and_pad!(400, 400, crop: :entropy)
refute_similar pad, crop
end

Expand Down

0 comments on commit 843a859

Please sign in to comment.