vips 8.8.0.3 → 8.10.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +5 -2
  3. data/README.md +3 -1
  4. data/example/connection.rb +17 -0
  5. data/example/daltonize8.rb +13 -15
  6. data/example/example1.rb +1 -2
  7. data/example/example4.rb +2 -2
  8. data/example/example5.rb +4 -5
  9. data/example/inheritance_with_refcount.rb +2 -19
  10. data/example/progress.rb +30 -0
  11. data/example/thumb.rb +2 -4
  12. data/example/trim8.rb +4 -4
  13. data/ext/Rakefile +2 -2
  14. data/lib/vips.rb +101 -35
  15. data/lib/vips/align.rb +0 -1
  16. data/lib/vips/angle.rb +0 -1
  17. data/lib/vips/angle45.rb +0 -1
  18. data/lib/vips/bandformat.rb +0 -2
  19. data/lib/vips/blend_mode.rb +0 -2
  20. data/lib/vips/coding.rb +0 -1
  21. data/lib/vips/compass_direction.rb +0 -1
  22. data/lib/vips/connection.rb +46 -0
  23. data/lib/vips/direction.rb +0 -1
  24. data/lib/vips/extend.rb +0 -1
  25. data/lib/vips/gobject.rb +8 -4
  26. data/lib/vips/gvalue.rb +15 -9
  27. data/lib/vips/image.rb +269 -204
  28. data/lib/vips/interesting.rb +0 -1
  29. data/lib/vips/interpolate.rb +0 -5
  30. data/lib/vips/interpretation.rb +0 -1
  31. data/lib/vips/kernel.rb +0 -1
  32. data/lib/vips/methods.rb +150 -59
  33. data/lib/vips/object.rb +126 -18
  34. data/lib/vips/operation.rb +169 -101
  35. data/lib/vips/operationboolean.rb +0 -1
  36. data/lib/vips/operationcomplex.rb +0 -1
  37. data/lib/vips/operationcomplex2.rb +0 -1
  38. data/lib/vips/operationcomplexget.rb +0 -1
  39. data/lib/vips/operationmath.rb +0 -1
  40. data/lib/vips/operationmath2.rb +0 -1
  41. data/lib/vips/operationrelational.rb +0 -1
  42. data/lib/vips/operationround.rb +0 -1
  43. data/lib/vips/region.rb +73 -0
  44. data/lib/vips/size.rb +0 -1
  45. data/lib/vips/source.rb +89 -0
  46. data/lib/vips/sourcecustom.rb +90 -0
  47. data/lib/vips/target.rb +87 -0
  48. data/lib/vips/targetcustom.rb +78 -0
  49. data/lib/vips/version.rb +1 -1
  50. metadata +14 -7
  51. data/CHANGELOG.md +0 -266
@@ -1,5 +1,4 @@
1
1
  module Vips
2
-
3
2
  # Pick the algorithm vips uses to decide image "interestingness". This is
4
3
  # used by {Image#smartcrop}, for example, to decide what parts of the image
5
4
  # to keep.
@@ -1,5 +1,4 @@
1
1
  module Vips
2
-
3
2
  attach_function :vips_interpolate_new, [:string], :pointer
4
3
 
5
4
  # An interpolator. One of these can be given to operations like
@@ -30,7 +29,6 @@ module Vips
30
29
  # ```
31
30
 
32
31
  class Interpolate < Vips::Object
33
-
34
32
  # the layout of the VipsInterpolate struct
35
33
  module InterpolateLayout
36
34
  def self.included base
@@ -43,12 +41,10 @@ module Vips
43
41
 
44
42
  class Struct < Vips::Object::Struct
45
43
  include InterpolateLayout
46
-
47
44
  end
48
45
 
49
46
  class ManagedStruct < Vips::Object::ManagedStruct
50
47
  include InterpolateLayout
51
-
52
48
  end
53
49
 
54
50
  def initialize name
@@ -57,6 +53,5 @@ module Vips
57
53
 
58
54
  super ptr
59
55
  end
60
-
61
56
  end
62
57
  end
@@ -1,5 +1,4 @@
1
1
  module Vips
2
-
3
2
  # How the values in an image should be interpreted. For example, a
4
3
  # three-band float image of type :lab should have its
5
4
  # pixels interpreted as coordinates in CIE Lab space.
@@ -1,5 +1,4 @@
1
1
  module Vips
2
-
3
2
  # A resizing kernel. One of these can be given to operations like
4
3
  # {Image#reduceh} or {Image#resize} to select the resizing kernel to use.
5
4
  #
@@ -1,6 +1,5 @@
1
1
  module Vips
2
2
  class Image
3
-
4
3
  # @!method self.system(cmd_format, **opts)
5
4
  # Run an external command.
6
5
  # @param cmd_format [String] Command to run
@@ -230,12 +229,12 @@ module Vips
230
229
  # @!method project(**opts)
231
230
  # Find image projections.
232
231
  # @param opts [Hash] Set of options
233
- # @return [Array<] Sums of columns, Sums of rows
232
+ # @return [Array<Vips::Image, Vips::Image>] Sums of columns, Sums of rows
234
233
 
235
234
  # @!method profile(**opts)
236
235
  # Find image profiles.
237
236
  # @param opts [Hash] Set of options
238
- # @return [Array<] First non-zero pixel in column, First non-zero pixel in row
237
+ # @return [Array<Vips::Image, Vips::Image>] First non-zero pixel in column, First non-zero pixel in row
239
238
 
240
239
  # @!method measure(h, v, **opts)
241
240
  # Measure a set of patches on a color chart.
@@ -260,7 +259,7 @@ module Vips
260
259
  # @param opts [Hash] Set of options
261
260
  # @option opts [Float] :threshold Object threshold
262
261
  # @option opts [Array<Double>] :background Color for background pixels
263
- # @return [Array<] Left edge of image, Top edge of extract area, Width of extract area, Height of extract area
262
+ # @return [Array<Integer, Integer, Integer, Integer>] Left edge of image, Top edge of extract area, Width of extract area, Height of extract area
264
263
 
265
264
  # @!method copy(**opts)
266
265
  # Copy an image.
@@ -593,6 +592,7 @@ module Vips
593
592
  # @option opts [Integer] :height Maximum image height in pixels
594
593
  # @option opts [Vips::Align] :align Align on the low, centre or high edge
595
594
  # @option opts [Integer] :dpi DPI to render at
595
+ # @option opts [Boolean] :justify Justify lines
596
596
  # @option opts [Integer] :spacing Line spacing
597
597
  # @option opts [String] :fontfile Load this font file
598
598
  # @option opts [Integer] :autofit_dpi Output DPI selected by autofit
@@ -862,13 +862,13 @@ module Vips
862
862
  # Load csv from file.
863
863
  # @param filename [String] Filename to load from
864
864
  # @param opts [Hash] Set of options
865
- # @option opts [Boolean] :memory Force open via memory
866
- # @option opts [Vips::Access] :access Required access pattern for this file
867
865
  # @option opts [Integer] :skip Skip this many lines at the start of the file
868
866
  # @option opts [Integer] :lines Read this many lines from the file
869
- # @option opts [Boolean] :fail Fail on first error
870
867
  # @option opts [String] :whitespace Set of whitespace characters
871
868
  # @option opts [String] :separator Set of separator characters
869
+ # @option opts [Boolean] :memory Force open via memory
870
+ # @option opts [Vips::Access] :access Required access pattern for this file
871
+ # @option opts [Boolean] :fail Fail on first error
872
872
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
873
873
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
874
874
 
@@ -889,10 +889,10 @@ module Vips
889
889
  # @param height [Integer] Image height in pixels
890
890
  # @param bands [Integer] Number of bands in image
891
891
  # @param opts [Hash] Set of options
892
+ # @option opts [guint64] :offset Offset in bytes from start of file
892
893
  # @option opts [Boolean] :memory Force open via memory
893
894
  # @option opts [Vips::Access] :access Required access pattern for this file
894
895
  # @option opts [Boolean] :fail Fail on first error
895
- # @option opts [guint64] :offset Offset in bytes from start of file
896
896
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
897
897
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
898
898
 
@@ -940,14 +940,14 @@ module Vips
940
940
  # Load pdf with libpoppler.
941
941
  # @param filename [String] Filename to load from
942
942
  # @param opts [Hash] Set of options
943
- # @option opts [Boolean] :memory Force open via memory
944
- # @option opts [Vips::Access] :access Required access pattern for this file
945
943
  # @option opts [Integer] :page Load this page from the file
946
944
  # @option opts [Integer] :n Load this many pages
947
- # @option opts [Boolean] :fail Fail on first error
948
945
  # @option opts [Float] :dpi Render at this DPI
949
946
  # @option opts [Float] :scale Scale output by this factor
950
947
  # @option opts [Array<Double>] :background Background value
948
+ # @option opts [Boolean] :memory Force open via memory
949
+ # @option opts [Vips::Access] :access Required access pattern for this file
950
+ # @option opts [Boolean] :fail Fail on first error
951
951
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
952
952
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
953
953
 
@@ -955,14 +955,14 @@ module Vips
955
955
  # Load pdf with libpoppler.
956
956
  # @param buffer [VipsBlob] Buffer to load from
957
957
  # @param opts [Hash] Set of options
958
- # @option opts [Boolean] :memory Force open via memory
959
- # @option opts [Vips::Access] :access Required access pattern for this file
960
958
  # @option opts [Integer] :page Load this page from the file
961
959
  # @option opts [Integer] :n Load this many pages
962
- # @option opts [Boolean] :fail Fail on first error
963
960
  # @option opts [Float] :dpi Render at this DPI
964
961
  # @option opts [Float] :scale Scale output by this factor
965
962
  # @option opts [Array<Double>] :background Background value
963
+ # @option opts [Boolean] :memory Force open via memory
964
+ # @option opts [Vips::Access] :access Required access pattern for this file
965
+ # @option opts [Boolean] :fail Fail on first error
966
966
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
967
967
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
968
968
 
@@ -970,11 +970,11 @@ module Vips
970
970
  # Load svg with rsvg.
971
971
  # @param filename [String] Filename to load from
972
972
  # @param opts [Hash] Set of options
973
+ # @option opts [Float] :dpi Render at this DPI
974
+ # @option opts [Float] :scale Scale output by this factor
973
975
  # @option opts [Boolean] :memory Force open via memory
974
976
  # @option opts [Vips::Access] :access Required access pattern for this file
975
- # @option opts [Float] :dpi Render at this DPI
976
977
  # @option opts [Boolean] :fail Fail on first error
977
- # @option opts [Float] :scale Scale output by this factor
978
978
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
979
979
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
980
980
 
@@ -982,11 +982,11 @@ module Vips
982
982
  # Load svg with rsvg.
983
983
  # @param filename [String] Filename to load from
984
984
  # @param opts [Hash] Set of options
985
+ # @option opts [Float] :dpi Render at this DPI
986
+ # @option opts [Float] :scale Scale output by this factor
985
987
  # @option opts [Boolean] :memory Force open via memory
986
988
  # @option opts [Vips::Access] :access Required access pattern for this file
987
- # @option opts [Float] :dpi Render at this DPI
988
989
  # @option opts [Boolean] :fail Fail on first error
989
- # @option opts [Float] :scale Scale output by this factor
990
990
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
991
991
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
992
992
 
@@ -994,11 +994,11 @@ module Vips
994
994
  # Load svg with rsvg.
995
995
  # @param buffer [VipsBlob] Buffer to load from
996
996
  # @param opts [Hash] Set of options
997
+ # @option opts [Float] :dpi Render at this DPI
998
+ # @option opts [Float] :scale Scale output by this factor
997
999
  # @option opts [Boolean] :memory Force open via memory
998
1000
  # @option opts [Vips::Access] :access Required access pattern for this file
999
- # @option opts [Float] :dpi Render at this DPI
1000
1001
  # @option opts [Boolean] :fail Fail on first error
1001
- # @option opts [Float] :scale Scale output by this factor
1002
1002
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1003
1003
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1004
1004
 
@@ -1006,10 +1006,10 @@ module Vips
1006
1006
  # Load gif with giflib.
1007
1007
  # @param filename [String] Filename to load from
1008
1008
  # @param opts [Hash] Set of options
1009
+ # @option opts [Integer] :page Load this page from the file
1009
1010
  # @option opts [Integer] :n Load this many pages
1010
1011
  # @option opts [Boolean] :memory Force open via memory
1011
1012
  # @option opts [Vips::Access] :access Required access pattern for this file
1012
- # @option opts [Integer] :page Load this page from the file
1013
1013
  # @option opts [Boolean] :fail Fail on first error
1014
1014
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1015
1015
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
@@ -1018,10 +1018,10 @@ module Vips
1018
1018
  # Load gif with giflib.
1019
1019
  # @param buffer [VipsBlob] Buffer to load from
1020
1020
  # @param opts [Hash] Set of options
1021
+ # @option opts [Integer] :page Load this page from the file
1021
1022
  # @option opts [Integer] :n Load this many pages
1022
1023
  # @option opts [Boolean] :memory Force open via memory
1023
1024
  # @option opts [Vips::Access] :access Required access pattern for this file
1024
- # @option opts [Integer] :page Load this page from the file
1025
1025
  # @option opts [Boolean] :fail Fail on first error
1026
1026
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1027
1027
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
@@ -1060,11 +1060,11 @@ module Vips
1060
1060
  # Load jpeg from file.
1061
1061
  # @param filename [String] Filename to load from
1062
1062
  # @param opts [Hash] Set of options
1063
+ # @option opts [Integer] :shrink Shrink factor on load
1064
+ # @option opts [Boolean] :autorotate Rotate image using exif orientation
1063
1065
  # @option opts [Boolean] :memory Force open via memory
1064
1066
  # @option opts [Vips::Access] :access Required access pattern for this file
1065
- # @option opts [Integer] :shrink Shrink factor on load
1066
1067
  # @option opts [Boolean] :fail Fail on first error
1067
- # @option opts [Boolean] :autorotate Rotate image using exif orientation
1068
1068
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1069
1069
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1070
1070
 
@@ -1072,11 +1072,11 @@ module Vips
1072
1072
  # Load jpeg from buffer.
1073
1073
  # @param buffer [VipsBlob] Buffer to load from
1074
1074
  # @param opts [Hash] Set of options
1075
+ # @option opts [Integer] :shrink Shrink factor on load
1076
+ # @option opts [Boolean] :autorotate Rotate image using exif orientation
1075
1077
  # @option opts [Boolean] :memory Force open via memory
1076
1078
  # @option opts [Vips::Access] :access Required access pattern for this file
1077
- # @option opts [Integer] :shrink Shrink factor on load
1078
1079
  # @option opts [Boolean] :fail Fail on first error
1079
- # @option opts [Boolean] :autorotate Rotate image using exif orientation
1080
1080
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1081
1081
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1082
1082
 
@@ -1084,9 +1084,11 @@ module Vips
1084
1084
  # Load webp from file.
1085
1085
  # @param filename [String] Filename to load from
1086
1086
  # @param opts [Hash] Set of options
1087
+ # @option opts [Integer] :page Load this page from the file
1088
+ # @option opts [Integer] :n Load this many pages
1089
+ # @option opts [Float] :scale Scale factor on load
1087
1090
  # @option opts [Boolean] :memory Force open via memory
1088
1091
  # @option opts [Vips::Access] :access Required access pattern for this file
1089
- # @option opts [Integer] :shrink Shrink factor on load
1090
1092
  # @option opts [Boolean] :fail Fail on first error
1091
1093
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1092
1094
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
@@ -1095,9 +1097,11 @@ module Vips
1095
1097
  # Load webp from buffer.
1096
1098
  # @param buffer [VipsBlob] Buffer to load from
1097
1099
  # @param opts [Hash] Set of options
1100
+ # @option opts [Integer] :page Load this page from the file
1101
+ # @option opts [Integer] :n Load this many pages
1102
+ # @option opts [Float] :scale Scale factor on load
1098
1103
  # @option opts [Boolean] :memory Force open via memory
1099
1104
  # @option opts [Vips::Access] :access Required access pattern for this file
1100
- # @option opts [Integer] :shrink Shrink factor on load
1101
1105
  # @option opts [Boolean] :fail Fail on first error
1102
1106
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1103
1107
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
@@ -1106,12 +1110,12 @@ module Vips
1106
1110
  # Load tiff from file.
1107
1111
  # @param filename [String] Filename to load from
1108
1112
  # @param opts [Hash] Set of options
1109
- # @option opts [Boolean] :memory Force open via memory
1110
- # @option opts [Vips::Access] :access Required access pattern for this file
1111
1113
  # @option opts [Integer] :page Load this page from the image
1112
1114
  # @option opts [Integer] :n Load this many pages
1113
- # @option opts [Boolean] :fail Fail on first error
1114
1115
  # @option opts [Boolean] :autorotate Rotate image using orientation tag
1116
+ # @option opts [Boolean] :memory Force open via memory
1117
+ # @option opts [Vips::Access] :access Required access pattern for this file
1118
+ # @option opts [Boolean] :fail Fail on first error
1115
1119
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1116
1120
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1117
1121
 
@@ -1119,12 +1123,12 @@ module Vips
1119
1123
  # Load tiff from buffer.
1120
1124
  # @param buffer [VipsBlob] Buffer to load from
1121
1125
  # @param opts [Hash] Set of options
1122
- # @option opts [Boolean] :memory Force open via memory
1123
- # @option opts [Vips::Access] :access Required access pattern for this file
1124
1126
  # @option opts [Integer] :page Load this page from the image
1125
1127
  # @option opts [Integer] :n Load this many pages
1126
- # @option opts [Boolean] :fail Fail on first error
1127
1128
  # @option opts [Boolean] :autorotate Rotate image using orientation tag
1129
+ # @option opts [Boolean] :memory Force open via memory
1130
+ # @option opts [Vips::Access] :access Required access pattern for this file
1131
+ # @option opts [Boolean] :fail Fail on first error
1128
1132
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1129
1133
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1130
1134
 
@@ -1132,12 +1136,13 @@ module Vips
1132
1136
  # Load file with openslide.
1133
1137
  # @param filename [String] Filename to load from
1134
1138
  # @param opts [Hash] Set of options
1135
- # @option opts [Boolean] :memory Force open via memory
1136
- # @option opts [Vips::Access] :access Required access pattern for this file
1139
+ # @option opts [Boolean] :attach_associated Attach all asssociated images
1137
1140
  # @option opts [Integer] :level Load this level from the file
1138
1141
  # @option opts [Boolean] :autocrop Crop to image bounds
1139
- # @option opts [Boolean] :fail Fail on first error
1140
1142
  # @option opts [String] :associated Load this associated image
1143
+ # @option opts [Boolean] :memory Force open via memory
1144
+ # @option opts [Vips::Access] :access Required access pattern for this file
1145
+ # @option opts [Boolean] :fail Fail on first error
1141
1146
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1142
1147
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1143
1148
 
@@ -1197,6 +1202,34 @@ module Vips
1197
1202
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1198
1203
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1199
1204
 
1205
+ # @!method self.heifload(filename, **opts)
1206
+ # Load a heif image.
1207
+ # @param filename [String] Filename to load from
1208
+ # @param opts [Hash] Set of options
1209
+ # @option opts [Integer] :page Load this page from the file
1210
+ # @option opts [Integer] :n Load this many pages
1211
+ # @option opts [Boolean] :thumbnail Fetch thumbnail image
1212
+ # @option opts [Boolean] :autorotate Rotate image using exif orientation
1213
+ # @option opts [Boolean] :memory Force open via memory
1214
+ # @option opts [Vips::Access] :access Required access pattern for this file
1215
+ # @option opts [Boolean] :fail Fail on first error
1216
+ # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1217
+ # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1218
+
1219
+ # @!method self.heifload_buffer(buffer, **opts)
1220
+ # Load a heif image.
1221
+ # @param buffer [VipsBlob] Buffer to load from
1222
+ # @param opts [Hash] Set of options
1223
+ # @option opts [Integer] :page Load this page from the file
1224
+ # @option opts [Integer] :n Load this many pages
1225
+ # @option opts [Boolean] :thumbnail Fetch thumbnail image
1226
+ # @option opts [Boolean] :autorotate Rotate image using exif orientation
1227
+ # @option opts [Boolean] :memory Force open via memory
1228
+ # @option opts [Vips::Access] :access Required access pattern for this file
1229
+ # @option opts [Boolean] :fail Fail on first error
1230
+ # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1231
+ # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1232
+
1200
1233
  # @!method csvsave(filename, **opts)
1201
1234
  # Save image to csv file.
1202
1235
  # @param filename [String] Filename to save to
@@ -1205,7 +1238,7 @@ module Vips
1205
1238
  # @option opts [String] :separator Separator characters
1206
1239
  # @option opts [Boolean] :strip Strip all metadata from image
1207
1240
  # @option opts [Array<Double>] :background Background value
1208
- # @return [nil]
1241
+ # @return [nil]
1209
1242
 
1210
1243
  # @!method matrixsave(filename, **opts)
1211
1244
  # Save image to matrix file.
@@ -1214,7 +1247,7 @@ module Vips
1214
1247
  # @option opts [Integer] :page_height Set page height for multipage save
1215
1248
  # @option opts [Boolean] :strip Strip all metadata from image
1216
1249
  # @option opts [Array<Double>] :background Background value
1217
- # @return [nil]
1250
+ # @return [nil]
1218
1251
 
1219
1252
  # @!method matrixprint(**opts)
1220
1253
  # Print matrix.
@@ -1222,7 +1255,7 @@ module Vips
1222
1255
  # @option opts [Integer] :page_height Set page height for multipage save
1223
1256
  # @option opts [Boolean] :strip Strip all metadata from image
1224
1257
  # @option opts [Array<Double>] :background Background value
1225
- # @return [nil]
1258
+ # @return [nil]
1226
1259
 
1227
1260
  # @!method rawsave(filename, **opts)
1228
1261
  # Save image to raw file.
@@ -1231,7 +1264,7 @@ module Vips
1231
1264
  # @option opts [Integer] :page_height Set page height for multipage save
1232
1265
  # @option opts [Boolean] :strip Strip all metadata from image
1233
1266
  # @option opts [Array<Double>] :background Background value
1234
- # @return [nil]
1267
+ # @return [nil]
1235
1268
 
1236
1269
  # @!method rawsave_fd(fd, **opts)
1237
1270
  # Write raw image to file descriptor.
@@ -1240,7 +1273,7 @@ module Vips
1240
1273
  # @option opts [Integer] :page_height Set page height for multipage save
1241
1274
  # @option opts [Boolean] :strip Strip all metadata from image
1242
1275
  # @option opts [Array<Double>] :background Background value
1243
- # @return [nil]
1276
+ # @return [nil]
1244
1277
 
1245
1278
  # @!method vipssave(filename, **opts)
1246
1279
  # Save image to vips file.
@@ -1249,7 +1282,7 @@ module Vips
1249
1282
  # @option opts [Integer] :page_height Set page height for multipage save
1250
1283
  # @option opts [Boolean] :strip Strip all metadata from image
1251
1284
  # @option opts [Array<Double>] :background Background value
1252
- # @return [nil]
1285
+ # @return [nil]
1253
1286
 
1254
1287
  # @!method ppmsave(filename, **opts)
1255
1288
  # Save image to ppm file.
@@ -1260,7 +1293,7 @@ module Vips
1260
1293
  # @option opts [Boolean] :squash save as one bit
1261
1294
  # @option opts [Boolean] :strip Strip all metadata from image
1262
1295
  # @option opts [Array<Double>] :background Background value
1263
- # @return [nil]
1296
+ # @return [nil]
1264
1297
 
1265
1298
  # @!method radsave(filename, **opts)
1266
1299
  # Save image to radiance file.
@@ -1269,7 +1302,7 @@ module Vips
1269
1302
  # @option opts [Integer] :page_height Set page height for multipage save
1270
1303
  # @option opts [Boolean] :strip Strip all metadata from image
1271
1304
  # @option opts [Array<Double>] :background Background value
1272
- # @return [nil]
1305
+ # @return [nil]
1273
1306
 
1274
1307
  # @!method radsave_buffer(**opts)
1275
1308
  # Save image to radiance buffer.
@@ -1296,9 +1329,10 @@ module Vips
1296
1329
  # @option opts [Boolean] :properties Write a properties file to the output directory
1297
1330
  # @option opts [Integer] :compression ZIP deflate compression level
1298
1331
  # @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
1332
+ # @option opts [Integer] :skip_blanks Skip tiles which are nearly equal to the background
1299
1333
  # @option opts [Boolean] :strip Strip all metadata from image
1300
1334
  # @option opts [Array<Double>] :background Background value
1301
- # @return [nil]
1335
+ # @return [nil]
1302
1336
 
1303
1337
  # @!method dzsave_buffer(**opts)
1304
1338
  # Save image to dz buffer.
@@ -1316,6 +1350,7 @@ module Vips
1316
1350
  # @option opts [Boolean] :properties Write a properties file to the output directory
1317
1351
  # @option opts [Integer] :compression ZIP deflate compression level
1318
1352
  # @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
1353
+ # @option opts [Integer] :skip_blanks Skip tiles which are nearly equal to the background
1319
1354
  # @option opts [Boolean] :strip Strip all metadata from image
1320
1355
  # @option opts [Array<Double>] :background Background value
1321
1356
  # @return [VipsBlob] Buffer to save to
@@ -1335,7 +1370,7 @@ module Vips
1335
1370
  # @option opts [Float] :dither Amount of dithering
1336
1371
  # @option opts [Boolean] :strip Strip all metadata from image
1337
1372
  # @option opts [Array<Double>] :background Background value
1338
- # @return [nil]
1373
+ # @return [nil]
1339
1374
 
1340
1375
  # @!method pngsave_buffer(**opts)
1341
1376
  # Save image to png buffer.
@@ -1369,7 +1404,7 @@ module Vips
1369
1404
  # @option opts [Integer] :quant_table Use predefined quantization table with given index
1370
1405
  # @option opts [Boolean] :strip Strip all metadata from image
1371
1406
  # @option opts [Array<Double>] :background Background value
1372
- # @return [nil]
1407
+ # @return [nil]
1373
1408
 
1374
1409
  # @!method jpegsave_buffer(**opts)
1375
1410
  # Save image to jpeg buffer.
@@ -1403,7 +1438,7 @@ module Vips
1403
1438
  # @option opts [Integer] :quant_table Use predefined quantization table with given index
1404
1439
  # @option opts [Boolean] :strip Strip all metadata from image
1405
1440
  # @option opts [Array<Double>] :background Background value
1406
- # @return [nil]
1441
+ # @return [nil]
1407
1442
 
1408
1443
  # @!method webpsave(filename, **opts)
1409
1444
  # Save image to webp file.
@@ -1416,9 +1451,13 @@ module Vips
1416
1451
  # @option opts [Boolean] :smart_subsample Enable high quality chroma subsampling
1417
1452
  # @option opts [Boolean] :near_lossless Enable preprocessing in lossless mode (uses Q)
1418
1453
  # @option opts [Integer] :alpha_q Change alpha plane fidelity for lossy compression
1454
+ # @option opts [Boolean] :min_size Optimise for minium size
1455
+ # @option opts [Integer] :kmin Minimum number of frames between key frames
1456
+ # @option opts [Integer] :kmax Maximum number of frames between key frames
1457
+ # @option opts [Integer] :reduction_effort Level of CPU effort to reduce file size
1419
1458
  # @option opts [Boolean] :strip Strip all metadata from image
1420
1459
  # @option opts [Array<Double>] :background Background value
1421
- # @return [nil]
1460
+ # @return [nil]
1422
1461
 
1423
1462
  # @!method webpsave_buffer(**opts)
1424
1463
  # Save image to webp buffer.
@@ -1430,6 +1469,10 @@ module Vips
1430
1469
  # @option opts [Boolean] :smart_subsample Enable high quality chroma subsampling
1431
1470
  # @option opts [Boolean] :near_lossless Enable preprocessing in lossless mode (uses Q)
1432
1471
  # @option opts [Integer] :alpha_q Change alpha plane fidelity for lossy compression
1472
+ # @option opts [Boolean] :min_size Optimise for minium size
1473
+ # @option opts [Integer] :kmin Minimum number of frames between key frames
1474
+ # @option opts [Integer] :kmax Maximum number of frames between key frames
1475
+ # @option opts [Integer] :reduction_effort Level of CPU effort to reduce file size
1433
1476
  # @option opts [Boolean] :strip Strip all metadata from image
1434
1477
  # @option opts [Array<Double>] :background Background value
1435
1478
  # @return [VipsBlob] Buffer to save to
@@ -1457,7 +1500,7 @@ module Vips
1457
1500
  # @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
1458
1501
  # @option opts [Boolean] :strip Strip all metadata from image
1459
1502
  # @option opts [Array<Double>] :background Background value
1460
- # @return [nil]
1503
+ # @return [nil]
1461
1504
 
1462
1505
  # @!method tiffsave_buffer(**opts)
1463
1506
  # Save image to tiff buffer.
@@ -1492,7 +1535,7 @@ module Vips
1492
1535
  # @option opts [Integer] :page_height Set page height for multipage save
1493
1536
  # @option opts [Boolean] :strip Strip all metadata from image
1494
1537
  # @option opts [Array<Double>] :background Background value
1495
- # @return [nil]
1538
+ # @return [nil]
1496
1539
 
1497
1540
  # @!method magicksave_buffer(**opts)
1498
1541
  # Save image to magick buffer.
@@ -1511,7 +1554,7 @@ module Vips
1511
1554
  # @option opts [Integer] :page_height Set page height for multipage save
1512
1555
  # @option opts [Boolean] :strip Strip all metadata from image
1513
1556
  # @option opts [Array<Double>] :background Background value
1514
- # @return [nil]
1557
+ # @return [nil]
1515
1558
 
1516
1559
  # @!method niftisave(filename, **opts)
1517
1560
  # Save image to nifti file.
@@ -1520,7 +1563,39 @@ module Vips
1520
1563
  # @option opts [Integer] :page_height Set page height for multipage save
1521
1564
  # @option opts [Boolean] :strip Strip all metadata from image
1522
1565
  # @option opts [Array<Double>] :background Background value
1523
- # @return [nil]
1566
+ # @return [nil]
1567
+
1568
+ # @!method heifsave(filename, **opts)
1569
+ # Save image in heif format.
1570
+ # @param filename [String] Filename to load from
1571
+ # @param opts [Hash] Set of options
1572
+ # @option opts [Integer] :page_height Set page height for multipage save
1573
+ # @option opts [Integer] :Q Q factor
1574
+ # @option opts [Boolean] :lossless Enable lossless compression
1575
+ # @option opts [Boolean] :strip Strip all metadata from image
1576
+ # @option opts [Array<Double>] :background Background value
1577
+ # @return [nil]
1578
+
1579
+ # @!method heifsave(filename, **opts)
1580
+ # Save image in heif format.
1581
+ # @param filename [String] Filename to load from
1582
+ # @param opts [Hash] Set of options
1583
+ # @option opts [Integer] :page_height Set page height for multipage save
1584
+ # @option opts [Integer] :Q Q factor
1585
+ # @option opts [Boolean] :lossless Enable lossless compression
1586
+ # @option opts [Boolean] :strip Strip all metadata from image
1587
+ # @option opts [Array<Double>] :background Background value
1588
+ # @return [nil]
1589
+
1590
+ # @!method heifsave_buffer(**opts)
1591
+ # Save image in heif format.
1592
+ # @param opts [Hash] Set of options
1593
+ # @option opts [Integer] :page_height Set page height for multipage save
1594
+ # @option opts [Integer] :Q Q factor
1595
+ # @option opts [Boolean] :lossless Enable lossless compression
1596
+ # @option opts [Boolean] :strip Strip all metadata from image
1597
+ # @option opts [Array<Double>] :background Background value
1598
+ # @return [VipsBlob] Buffer to save to
1524
1599
 
1525
1600
  # @!method self.thumbnail(filename, width, **opts)
1526
1601
  # Generate thumbnail from file.
@@ -1529,7 +1604,7 @@ module Vips
1529
1604
  # @param opts [Hash] Set of options
1530
1605
  # @option opts [Integer] :height Size to this height
1531
1606
  # @option opts [Vips::Size] :size Only upsize, only downsize, or both
1532
- # @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
1607
+ # @option opts [Boolean] :no_rotate Don't use orientation tags to rotate image upright
1533
1608
  # @option opts [Vips::Interesting] :crop Reduce to fill target rectangle, then crop
1534
1609
  # @option opts [Boolean] :linear Reduce in linear light
1535
1610
  # @option opts [String] :import_profile Fallback import profile
@@ -1542,9 +1617,10 @@ module Vips
1542
1617
  # @param buffer [VipsBlob] Buffer to load from
1543
1618
  # @param width [Integer] Size to this width
1544
1619
  # @param opts [Hash] Set of options
1620
+ # @option opts [String] :option_string Options that are passed on to the underlying loader
1545
1621
  # @option opts [Integer] :height Size to this height
1546
1622
  # @option opts [Vips::Size] :size Only upsize, only downsize, or both
1547
- # @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
1623
+ # @option opts [Boolean] :no_rotate Don't use orientation tags to rotate image upright
1548
1624
  # @option opts [Vips::Interesting] :crop Reduce to fill target rectangle, then crop
1549
1625
  # @option opts [Boolean] :linear Reduce in linear light
1550
1626
  # @option opts [String] :import_profile Fallback import profile
@@ -1558,7 +1634,7 @@ module Vips
1558
1634
  # @param opts [Hash] Set of options
1559
1635
  # @option opts [Integer] :height Size to this height
1560
1636
  # @option opts [Vips::Size] :size Only upsize, only downsize, or both
1561
- # @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
1637
+ # @option opts [Boolean] :no_rotate Don't use orientation tags to rotate image upright
1562
1638
  # @option opts [Vips::Interesting] :crop Reduce to fill target rectangle, then crop
1563
1639
  # @option opts [Boolean] :linear Reduce in linear light
1564
1640
  # @option opts [String] :import_profile Fallback import profile
@@ -1567,7 +1643,7 @@ module Vips
1567
1643
  # @return [Vips::Image] Output image
1568
1644
 
1569
1645
  # @!method mapim(index, **opts)
1570
- # Resample with an mapim image.
1646
+ # Resample with a map image.
1571
1647
  # @param index [Vips::Image] Index pixels with this
1572
1648
  # @param opts [Hash] Set of options
1573
1649
  # @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
@@ -1849,6 +1925,22 @@ module Vips
1849
1925
  # @option opts [Integer] :depth Output device space depth in bits
1850
1926
  # @return [Vips::Image] Output image
1851
1927
 
1928
+ # @!method CMYK2XYZ(**opts)
1929
+ # Transform cmyk to xyz.
1930
+ # @param opts [Hash] Set of options
1931
+ # @return [Vips::Image] Output image
1932
+
1933
+ # @!method XYZ2CMYK(**opts)
1934
+ # Transform xyz to cmyk.
1935
+ # @param opts [Hash] Set of options
1936
+ # @return [Vips::Image] Output image
1937
+
1938
+ # @!method self.profile_load(name, **opts)
1939
+ # Load named icc profile.
1940
+ # @param name [String] Profile name
1941
+ # @param opts [Hash] Set of options
1942
+ # @return [VipsBlob] Loaded profile
1943
+
1852
1944
  # @!method maplut(lut, **opts)
1853
1945
  # Map an image though a lut.
1854
1946
  # @param lut [Vips::Image] Look-up table image
@@ -2227,6 +2319,5 @@ module Vips
2227
2319
  # @option opts [Float] :gamma Image gamma
2228
2320
  # @option opts [Boolean] :int_output Integer output
2229
2321
  # @return [Vips::Image] Output image
2230
-
2231
2322
  end
2232
2323
  end