We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3062214 commit a78900bCopy full SHA for a78900b
2 files changed
spec/image_spec.rb
@@ -727,7 +727,7 @@
727
end
728
729
# added in 8.18
730
- if Vips.respond_to? :vips_image_get_gainmap
+ if has_uhdr?
731
it "can modify gainmaps" do
732
# test the example code in image.rb doc comment for get_gainmap
733
def modify_gainmap image
spec/spec_helper.rb
@@ -23,11 +23,15 @@ def timg(name)
23
24
25
def has_jpeg?
26
- Vips.type_find("VipsOperation", "jpegload") != nil
+ Vips.type_find("VipsOperation", "jpegload") != 0
27
28
29
def has_svg?
30
- Vips.type_find("VipsOperation", "svgload") != nil
+ Vips.type_find("VipsOperation", "svgload") != 0
31
+end
32
+
33
+def has_uhdr?
34
+ Vips.type_find("VipsOperation", "uhdrload") != 0
35
36
37
RSpec.configure do |config|
0 commit comments