Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing test #117

Merged
merged 1 commit into from
Sep 24, 2023
Merged

Fix failing test #117

merged 1 commit into from
Sep 24, 2023

Conversation

p8
Copy link
Contributor

@p8 p8 commented Sep 24, 2023

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.

As this test seems to test that the options passed to resize_and_pad!
are applied, the actual :crop option shouldn't matter.

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.
@janko
Copy link
Owner

janko commented Sep 24, 2023

Looks good, thanks!

@janko janko merged commit 843a859 into janko:master Sep 24, 2023
7 of 9 checks passed
@p8 p8 deleted the fix-build2 branch September 24, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants