File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 727727 end
728728
729729 # added in 8.18
730- if Vips . respond_to? :vips_image_get_gainmap
730+ if has_uhdr?
731731 it "can modify gainmaps" do
732732 # test the example code in image.rb doc comment for get_gainmap
733733 def modify_gainmap image
Original file line number Diff line number Diff line change @@ -23,11 +23,15 @@ def timg(name)
2323end
2424
2525def has_jpeg?
26- Vips . type_find ( "VipsOperation" , "jpegload" ) != nil
26+ Vips . type_find ( "VipsOperation" , "jpegload" ) != 0
2727end
2828
2929def has_svg?
30- Vips . type_find ( "VipsOperation" , "svgload" ) != nil
30+ Vips . type_find ( "VipsOperation" , "svgload" ) != 0
31+ end
32+
33+ def has_uhdr?
34+ Vips . type_find ( "VipsOperation" , "uhdrload" ) != 0
3135end
3236
3337RSpec . configure do |config |
You can’t perform that action at this time.
0 commit comments