ruby-vips 2.0.8 → 2.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3053302bf9707cbd283b0b8c1cf7add20cbe94bf
4
- data.tar.gz: fc1c109a20fbd505a2e97227d02b8274c7385571
3
+ metadata.gz: 73d6ac365e6bbd2f6202a9f6a48c56cc905dacd0
4
+ data.tar.gz: 2091c1567fef3313462ffa40e6498061abf07655
5
5
  SHA512:
6
- metadata.gz: b7a50b059950e254e5743d193e565296721cd35d23278ec2480f86a6e049770eb1a06ee670d2f2e4163611d29442d4c3080b5b7352caeb10bcaa84e661202ce0
7
- data.tar.gz: 0626521b21f79c42fe423a373cbfb67eb36296f6b692f039a9a0c997af142e7d2ffd65cdfe66fffcc952d4a9d95d0e4c7b1566e279e83f00cc407e82620a00b3
6
+ metadata.gz: 47bf833edf1d9c98ed6acfeb22e315515e9e15110df45155d576eba096f2c8fdca479d99b57013b6a5eb83180b011bcff8b594624c2094265bb31af23ea14c1e
7
+ data.tar.gz: fd4c920dde19ffdd3b21aa8c7c6a689c74a911921268543423cfe35deb31b9ac4d972c425e66ae2bf0dbbfe40279ec82b97c98e292318af6df60ac12068efb2f
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## Version 2.0.9 (2017-12-21)
6
+
7
+ * update docs for libvips 8.6
8
+
5
9
  ## Version 2.0.8 (2017-09-14)
6
10
 
7
11
  * add `thumb.rb` example, and verify we run stably and in constant memory
data/TODO CHANGED
@@ -9,20 +9,28 @@
9
9
 
10
10
  - version bump
11
11
 
12
- edit lib/vips/version.rb and VERSION
12
+ edit lib/vips/version.rb
13
+ edit VERSION
13
14
 
14
15
  - reinstall local copy of gem after a change
15
16
 
16
- bundle exec rake install
17
+ bundle exec rake install
17
18
 
18
19
  - run test suite
19
20
 
20
- bundle exec rake
21
+ bundle exec rake
21
22
 
22
- - push new gem to rubygems, tag repository with version
23
+ - regenerate autodocs
23
24
 
24
- bundle exec rake release
25
+ cd lib/vips
26
+ ruby > methods.rb
27
+ require 'vips'; Vips::generate_yard
28
+ ^D
25
29
 
26
30
  - regenerate docs
27
31
 
28
- bundle exec rake yard
32
+ bundle exec rake yard
33
+
34
+ - push new gem to rubygems, tag repository with version
35
+
36
+ bundle exec rake release
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.8
1
+ 2.0.9
@@ -557,7 +557,7 @@ module Vips
557
557
 
558
558
  # Deprecated compatibility function.
559
559
  #
560
- # Don't use this, instead change {GLib::logger.level}.
560
+ # Don't use this, instead change GLib::logger.level.
561
561
  def self.set_debug debug
562
562
  if debug
563
563
  GLib::logger.level = Logger::DEBUG
@@ -209,6 +209,7 @@ module Vips
209
209
  # Find indexed image histogram.
210
210
  # @param index [Vips::Image] Index image
211
211
  # @param opts [Hash] Set of options
212
+ # @option opts [Vips::Combine] :combine Combine bins like this
212
213
  # @return [Vips::Image] Output histogram
213
214
 
214
215
  # @!method hough_line(opts = {})
@@ -254,6 +255,13 @@ module Vips
254
255
  # @param opts [Hash] Set of options
255
256
  # @return [Array<Double>] Array of output values
256
257
 
258
+ # @!method find_trim(opts = {})
259
+ # Search an image for non-edge areas.
260
+ # @param opts [Hash] Set of options
261
+ # @option opts [Float] :threshold Object threshold
262
+ # @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
264
+
257
265
  # @!method copy(opts = {})
258
266
  # Copy an image.
259
267
  # @param opts [Hash] Set of options
@@ -314,6 +322,16 @@ module Vips
314
322
  # @option opts [Array<Double>] :background Color for background pixels
315
323
  # @return [Vips::Image] Output image
316
324
 
325
+ # @!method gravity(direction, width, height, opts = {})
326
+ # Place an image within a larger image with a certain gravity.
327
+ # @param direction [Vips::CompassDirection] direction to place image within width/height
328
+ # @param width [Integer] Image width in pixels
329
+ # @param height [Integer] Image height in pixels
330
+ # @param opts [Hash] Set of options
331
+ # @option opts [Vips::Extend] :extend How to generate the extra pixels
332
+ # @option opts [Array<Double>] :background Color for background pixels
333
+ # @return [Vips::Image] Output image
334
+
317
335
  # @!method flip(direction, opts = {})
318
336
  # Flip an image.
319
337
  # @param direction [Vips::Direction] Direction to flip image
@@ -532,6 +550,15 @@ module Vips
532
550
  # @option opts [Float] :exponent Gamma factor
533
551
  # @return [Vips::Image] Output image
534
552
 
553
+ # @!method composite2(overlay, mode, opts = {})
554
+ # Blend a pair of images with a blend mode.
555
+ # @param overlay [Vips::Image] Overlay image
556
+ # @param mode [Vips::BlendMode] VipsBlendMode to join with
557
+ # @param opts [Hash] Set of options
558
+ # @option opts [Vips::Interpretation] :compositing_space Composite images in this colour space
559
+ # @option opts [Boolean] :premultiplied Images have premultiplied alpha
560
+ # @return [Vips::Image] Output image
561
+
535
562
  # @!method self.black(width, height, opts = {})
536
563
  # Make a black image.
537
564
  # @param width [Integer] Image width in pixels
@@ -555,10 +582,12 @@ module Vips
555
582
  # @param opts [Hash] Set of options
556
583
  # @option opts [String] :font Font to render with
557
584
  # @option opts [Integer] :width Maximum image width in pixels
585
+ # @option opts [Integer] :height Maximum image height in pixels
558
586
  # @option opts [Vips::Align] :align Align on the low, centre or high edge
559
587
  # @option opts [Integer] :dpi DPI to render at
560
588
  # @option opts [Integer] :spacing Line spacing
561
- # @return [Vips::Image] Output image
589
+ # @option opts [Integer] :autofit_dpi Output DPI selected by autofit
590
+ # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
562
591
 
563
592
  # @!method self.xyz(width, height, opts = {})
564
593
  # Make an image where pixel values are coordinates.
@@ -824,7 +853,7 @@ module Vips
824
853
  # Load csv from file.
825
854
  # @param filename [String] Filename to load from
826
855
  # @param opts [Hash] Set of options
827
- # @option opts [Boolean] :disc Open to disc
856
+ # @option opts [Boolean] :memory Force open via memory
828
857
  # @option opts [Vips::Access] :access Required access pattern for this file
829
858
  # @option opts [Integer] :skip Skip this many lines at the start of the file
830
859
  # @option opts [Integer] :lines Read this many lines from the file
@@ -838,7 +867,7 @@ module Vips
838
867
  # Load matrix from file.
839
868
  # @param filename [String] Filename to load from
840
869
  # @param opts [Hash] Set of options
841
- # @option opts [Boolean] :disc Open to disc
870
+ # @option opts [Boolean] :memory Force open via memory
842
871
  # @option opts [Vips::Access] :access Required access pattern for this file
843
872
  # @option opts [Boolean] :fail Fail on first error
844
873
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -851,7 +880,7 @@ module Vips
851
880
  # @param height [Integer] Image height in pixels
852
881
  # @param bands [Integer] Number of bands in image
853
882
  # @param opts [Hash] Set of options
854
- # @option opts [Boolean] :disc Open to disc
883
+ # @option opts [Boolean] :memory Force open via memory
855
884
  # @option opts [Vips::Access] :access Required access pattern for this file
856
885
  # @option opts [Boolean] :fail Fail on first error
857
886
  # @option opts [guint64] :offset Offset in bytes from start of file
@@ -862,7 +891,7 @@ module Vips
862
891
  # Load vips from file.
863
892
  # @param filename [String] Filename to load from
864
893
  # @param opts [Hash] Set of options
865
- # @option opts [Boolean] :disc Open to disc
894
+ # @option opts [Boolean] :memory Force open via memory
866
895
  # @option opts [Vips::Access] :access Required access pattern for this file
867
896
  # @option opts [Boolean] :fail Fail on first error
868
897
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -872,7 +901,7 @@ module Vips
872
901
  # Load an analyze6 image.
873
902
  # @param filename [String] Filename to load from
874
903
  # @param opts [Hash] Set of options
875
- # @option opts [Boolean] :disc Open to disc
904
+ # @option opts [Boolean] :memory Force open via memory
876
905
  # @option opts [Vips::Access] :access Required access pattern for this file
877
906
  # @option opts [Boolean] :fail Fail on first error
878
907
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -882,7 +911,7 @@ module Vips
882
911
  # Load ppm from file.
883
912
  # @param filename [String] Filename to load from
884
913
  # @param opts [Hash] Set of options
885
- # @option opts [Boolean] :disc Open to disc
914
+ # @option opts [Boolean] :memory Force open via memory
886
915
  # @option opts [Vips::Access] :access Required access pattern for this file
887
916
  # @option opts [Boolean] :fail Fail on first error
888
917
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -892,7 +921,7 @@ module Vips
892
921
  # Load a radiance image from a file.
893
922
  # @param filename [String] Filename to load from
894
923
  # @param opts [Hash] Set of options
895
- # @option opts [Boolean] :disc Open to disc
924
+ # @option opts [Boolean] :memory Force open via memory
896
925
  # @option opts [Vips::Access] :access Required access pattern for this file
897
926
  # @option opts [Boolean] :fail Fail on first error
898
927
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -902,7 +931,7 @@ module Vips
902
931
  # Load pdf with libpoppler.
903
932
  # @param filename [String] Filename to load from
904
933
  # @param opts [Hash] Set of options
905
- # @option opts [Boolean] :disc Open to disc
934
+ # @option opts [Boolean] :memory Force open via memory
906
935
  # @option opts [Vips::Access] :access Required access pattern for this file
907
936
  # @option opts [Integer] :page Load this page from the file
908
937
  # @option opts [Integer] :n Load this many pages
@@ -916,7 +945,7 @@ module Vips
916
945
  # Load pdf with libpoppler.
917
946
  # @param buffer [VipsBlob] Buffer to load from
918
947
  # @param opts [Hash] Set of options
919
- # @option opts [Boolean] :disc Open to disc
948
+ # @option opts [Boolean] :memory Force open via memory
920
949
  # @option opts [Vips::Access] :access Required access pattern for this file
921
950
  # @option opts [Integer] :page Load this page from the file
922
951
  # @option opts [Integer] :n Load this many pages
@@ -930,7 +959,7 @@ module Vips
930
959
  # Load svg with rsvg.
931
960
  # @param filename [String] Filename to load from
932
961
  # @param opts [Hash] Set of options
933
- # @option opts [Boolean] :disc Open to disc
962
+ # @option opts [Boolean] :memory Force open via memory
934
963
  # @option opts [Vips::Access] :access Required access pattern for this file
935
964
  # @option opts [Float] :dpi Render at this DPI
936
965
  # @option opts [Boolean] :fail Fail on first error
@@ -942,7 +971,7 @@ module Vips
942
971
  # Load svg with rsvg.
943
972
  # @param filename [String] Filename to load from
944
973
  # @param opts [Hash] Set of options
945
- # @option opts [Boolean] :disc Open to disc
974
+ # @option opts [Boolean] :memory Force open via memory
946
975
  # @option opts [Vips::Access] :access Required access pattern for this file
947
976
  # @option opts [Float] :dpi Render at this DPI
948
977
  # @option opts [Boolean] :fail Fail on first error
@@ -954,7 +983,7 @@ module Vips
954
983
  # Load svg with rsvg.
955
984
  # @param buffer [VipsBlob] Buffer to load from
956
985
  # @param opts [Hash] Set of options
957
- # @option opts [Boolean] :disc Open to disc
986
+ # @option opts [Boolean] :memory Force open via memory
958
987
  # @option opts [Vips::Access] :access Required access pattern for this file
959
988
  # @option opts [Float] :dpi Render at this DPI
960
989
  # @option opts [Boolean] :fail Fail on first error
@@ -967,7 +996,7 @@ module Vips
967
996
  # @param filename [String] Filename to load from
968
997
  # @param opts [Hash] Set of options
969
998
  # @option opts [Integer] :n Load this many pages
970
- # @option opts [Boolean] :disc Open to disc
999
+ # @option opts [Boolean] :memory Force open via memory
971
1000
  # @option opts [Vips::Access] :access Required access pattern for this file
972
1001
  # @option opts [Integer] :page Load this page from the file
973
1002
  # @option opts [Boolean] :fail Fail on first error
@@ -979,7 +1008,7 @@ module Vips
979
1008
  # @param buffer [VipsBlob] Buffer to load from
980
1009
  # @param opts [Hash] Set of options
981
1010
  # @option opts [Integer] :n Load this many pages
982
- # @option opts [Boolean] :disc Open to disc
1011
+ # @option opts [Boolean] :memory Force open via memory
983
1012
  # @option opts [Vips::Access] :access Required access pattern for this file
984
1013
  # @option opts [Integer] :page Load this page from the file
985
1014
  # @option opts [Boolean] :fail Fail on first error
@@ -990,7 +1019,7 @@ module Vips
990
1019
  # Load png from file.
991
1020
  # @param filename [String] Filename to load from
992
1021
  # @param opts [Hash] Set of options
993
- # @option opts [Boolean] :disc Open to disc
1022
+ # @option opts [Boolean] :memory Force open via memory
994
1023
  # @option opts [Vips::Access] :access Required access pattern for this file
995
1024
  # @option opts [Boolean] :fail Fail on first error
996
1025
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -1000,7 +1029,7 @@ module Vips
1000
1029
  # Load png from buffer.
1001
1030
  # @param buffer [VipsBlob] Buffer to load from
1002
1031
  # @param opts [Hash] Set of options
1003
- # @option opts [Boolean] :disc Open to disc
1032
+ # @option opts [Boolean] :memory Force open via memory
1004
1033
  # @option opts [Vips::Access] :access Required access pattern for this file
1005
1034
  # @option opts [Boolean] :fail Fail on first error
1006
1035
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -1010,7 +1039,7 @@ module Vips
1010
1039
  # Load mat from file.
1011
1040
  # @param filename [String] Filename to load from
1012
1041
  # @param opts [Hash] Set of options
1013
- # @option opts [Boolean] :disc Open to disc
1042
+ # @option opts [Boolean] :memory Force open via memory
1014
1043
  # @option opts [Vips::Access] :access Required access pattern for this file
1015
1044
  # @option opts [Boolean] :fail Fail on first error
1016
1045
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -1020,7 +1049,7 @@ module Vips
1020
1049
  # Load jpeg from file.
1021
1050
  # @param filename [String] Filename to load from
1022
1051
  # @param opts [Hash] Set of options
1023
- # @option opts [Boolean] :disc Open to disc
1052
+ # @option opts [Boolean] :memory Force open via memory
1024
1053
  # @option opts [Vips::Access] :access Required access pattern for this file
1025
1054
  # @option opts [Integer] :shrink Shrink factor on load
1026
1055
  # @option opts [Boolean] :fail Fail on first error
@@ -1032,7 +1061,7 @@ module Vips
1032
1061
  # Load jpeg from buffer.
1033
1062
  # @param buffer [VipsBlob] Buffer to load from
1034
1063
  # @param opts [Hash] Set of options
1035
- # @option opts [Boolean] :disc Open to disc
1064
+ # @option opts [Boolean] :memory Force open via memory
1036
1065
  # @option opts [Vips::Access] :access Required access pattern for this file
1037
1066
  # @option opts [Integer] :shrink Shrink factor on load
1038
1067
  # @option opts [Boolean] :fail Fail on first error
@@ -1044,7 +1073,7 @@ module Vips
1044
1073
  # Load webp from file.
1045
1074
  # @param filename [String] Filename to load from
1046
1075
  # @param opts [Hash] Set of options
1047
- # @option opts [Boolean] :disc Open to disc
1076
+ # @option opts [Boolean] :memory Force open via memory
1048
1077
  # @option opts [Vips::Access] :access Required access pattern for this file
1049
1078
  # @option opts [Integer] :shrink Shrink factor on load
1050
1079
  # @option opts [Boolean] :fail Fail on first error
@@ -1055,7 +1084,7 @@ module Vips
1055
1084
  # Load webp from buffer.
1056
1085
  # @param buffer [VipsBlob] Buffer to load from
1057
1086
  # @param opts [Hash] Set of options
1058
- # @option opts [Boolean] :disc Open to disc
1087
+ # @option opts [Boolean] :memory Force open via memory
1059
1088
  # @option opts [Vips::Access] :access Required access pattern for this file
1060
1089
  # @option opts [Integer] :shrink Shrink factor on load
1061
1090
  # @option opts [Boolean] :fail Fail on first error
@@ -1066,7 +1095,7 @@ module Vips
1066
1095
  # Load tiff from file.
1067
1096
  # @param filename [String] Filename to load from
1068
1097
  # @param opts [Hash] Set of options
1069
- # @option opts [Boolean] :disc Open to disc
1098
+ # @option opts [Boolean] :memory Force open via memory
1070
1099
  # @option opts [Vips::Access] :access Required access pattern for this file
1071
1100
  # @option opts [Integer] :page Load this page from the image
1072
1101
  # @option opts [Integer] :n Load this many pages
@@ -1079,7 +1108,7 @@ module Vips
1079
1108
  # Load tiff from buffer.
1080
1109
  # @param buffer [VipsBlob] Buffer to load from
1081
1110
  # @param opts [Hash] Set of options
1082
- # @option opts [Boolean] :disc Open to disc
1111
+ # @option opts [Boolean] :memory Force open via memory
1083
1112
  # @option opts [Vips::Access] :access Required access pattern for this file
1084
1113
  # @option opts [Integer] :page Load this page from the image
1085
1114
  # @option opts [Integer] :n Load this many pages
@@ -1092,7 +1121,7 @@ module Vips
1092
1121
  # Load file with openslide.
1093
1122
  # @param filename [String] Filename to load from
1094
1123
  # @param opts [Hash] Set of options
1095
- # @option opts [Boolean] :disc Open to disc
1124
+ # @option opts [Boolean] :memory Force open via memory
1096
1125
  # @option opts [Vips::Access] :access Required access pattern for this file
1097
1126
  # @option opts [Integer] :level Load this level from the file
1098
1127
  # @option opts [Boolean] :autocrop Crop to image bounds
@@ -1108,7 +1137,7 @@ module Vips
1108
1137
  # @option opts [String] :density Canvas resolution for rendering vector formats like SVG
1109
1138
  # @option opts [Integer] :page Load this page from the file
1110
1139
  # @option opts [Integer] :n Load this many pages
1111
- # @option opts [Boolean] :disc Open to disc
1140
+ # @option opts [Boolean] :memory Force open via memory
1112
1141
  # @option opts [Vips::Access] :access Required access pattern for this file
1113
1142
  # @option opts [Boolean] :fail Fail on first error
1114
1143
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -1121,7 +1150,7 @@ module Vips
1121
1150
  # @option opts [String] :density Canvas resolution for rendering vector formats like SVG
1122
1151
  # @option opts [Integer] :page Load this page from the file
1123
1152
  # @option opts [Integer] :n Load this many pages
1124
- # @option opts [Boolean] :disc Open to disc
1153
+ # @option opts [Boolean] :memory Force open via memory
1125
1154
  # @option opts [Vips::Access] :access Required access pattern for this file
1126
1155
  # @option opts [Boolean] :fail Fail on first error
1127
1156
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -1131,7 +1160,7 @@ module Vips
1131
1160
  # Load a fits image.
1132
1161
  # @param filename [String] Filename to load from
1133
1162
  # @param opts [Hash] Set of options
1134
- # @option opts [Boolean] :disc Open to disc
1163
+ # @option opts [Boolean] :memory Force open via memory
1135
1164
  # @option opts [Vips::Access] :access Required access pattern for this file
1136
1165
  # @option opts [Boolean] :fail Fail on first error
1137
1166
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -1141,7 +1170,7 @@ module Vips
1141
1170
  # Load an openexr image.
1142
1171
  # @param filename [String] Filename to load from
1143
1172
  # @param opts [Hash] Set of options
1144
- # @option opts [Boolean] :disc Open to disc
1173
+ # @option opts [Boolean] :memory Force open via memory
1145
1174
  # @option opts [Vips::Access] :access Required access pattern for this file
1146
1175
  # @option opts [Boolean] :fail Fail on first error
1147
1176
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -1151,6 +1180,7 @@ module Vips
1151
1180
  # Save image to csv file.
1152
1181
  # @param filename [String] Filename to save to
1153
1182
  # @param opts [Hash] Set of options
1183
+ # @option opts [Integer] :page_height Set page height for multipage save
1154
1184
  # @option opts [String] :separator Separator characters
1155
1185
  # @option opts [Boolean] :strip Strip all metadata from image
1156
1186
  # @option opts [Array<Double>] :background Background value
@@ -1160,6 +1190,7 @@ module Vips
1160
1190
  # Save image to matrix file.
1161
1191
  # @param filename [String] Filename to save to
1162
1192
  # @param opts [Hash] Set of options
1193
+ # @option opts [Integer] :page_height Set page height for multipage save
1163
1194
  # @option opts [Boolean] :strip Strip all metadata from image
1164
1195
  # @option opts [Array<Double>] :background Background value
1165
1196
  # @return [nil]
@@ -1167,6 +1198,7 @@ module Vips
1167
1198
  # @!method matrixprint(opts = {})
1168
1199
  # Print matrix.
1169
1200
  # @param opts [Hash] Set of options
1201
+ # @option opts [Integer] :page_height Set page height for multipage save
1170
1202
  # @option opts [Boolean] :strip Strip all metadata from image
1171
1203
  # @option opts [Array<Double>] :background Background value
1172
1204
  # @return [nil]
@@ -1175,6 +1207,7 @@ module Vips
1175
1207
  # Save image to raw file.
1176
1208
  # @param filename [String] Filename to save to
1177
1209
  # @param opts [Hash] Set of options
1210
+ # @option opts [Integer] :page_height Set page height for multipage save
1178
1211
  # @option opts [Boolean] :strip Strip all metadata from image
1179
1212
  # @option opts [Array<Double>] :background Background value
1180
1213
  # @return [nil]
@@ -1183,6 +1216,7 @@ module Vips
1183
1216
  # Write raw image to file descriptor.
1184
1217
  # @param fd [Integer] File descriptor to write to
1185
1218
  # @param opts [Hash] Set of options
1219
+ # @option opts [Integer] :page_height Set page height for multipage save
1186
1220
  # @option opts [Boolean] :strip Strip all metadata from image
1187
1221
  # @option opts [Array<Double>] :background Background value
1188
1222
  # @return [nil]
@@ -1191,6 +1225,7 @@ module Vips
1191
1225
  # Save image to vips file.
1192
1226
  # @param filename [String] Filename to save to
1193
1227
  # @param opts [Hash] Set of options
1228
+ # @option opts [Integer] :page_height Set page height for multipage save
1194
1229
  # @option opts [Boolean] :strip Strip all metadata from image
1195
1230
  # @option opts [Array<Double>] :background Background value
1196
1231
  # @return [nil]
@@ -1199,6 +1234,7 @@ module Vips
1199
1234
  # Save image to ppm file.
1200
1235
  # @param filename [String] Filename to save to
1201
1236
  # @param opts [Hash] Set of options
1237
+ # @option opts [Integer] :page_height Set page height for multipage save
1202
1238
  # @option opts [Boolean] :ascii save as ascii
1203
1239
  # @option opts [Boolean] :squash save as one bit
1204
1240
  # @option opts [Boolean] :strip Strip all metadata from image
@@ -1209,6 +1245,7 @@ module Vips
1209
1245
  # Save image to radiance file.
1210
1246
  # @param filename [String] Filename to save to
1211
1247
  # @param opts [Hash] Set of options
1248
+ # @option opts [Integer] :page_height Set page height for multipage save
1212
1249
  # @option opts [Boolean] :strip Strip all metadata from image
1213
1250
  # @option opts [Array<Double>] :background Background value
1214
1251
  # @return [nil]
@@ -1216,6 +1253,7 @@ module Vips
1216
1253
  # @!method radsave_buffer(opts = {})
1217
1254
  # Save image to radiance buffer.
1218
1255
  # @param opts [Hash] Set of options
1256
+ # @option opts [Integer] :page_height Set page height for multipage save
1219
1257
  # @option opts [Boolean] :strip Strip all metadata from image
1220
1258
  # @option opts [Array<Double>] :background Background value
1221
1259
  # @return [VipsBlob] Buffer to save to
@@ -1226,6 +1264,7 @@ module Vips
1226
1264
  # @param opts [Hash] Set of options
1227
1265
  # @option opts [String] :basename Base name to save to
1228
1266
  # @option opts [Vips::ForeignDzLayout] :layout Directory layout
1267
+ # @option opts [Integer] :page_height Set page height for multipage save
1229
1268
  # @option opts [String] :suffix Filename suffix for tiles
1230
1269
  # @option opts [Integer] :overlap Tile overlap in pixels
1231
1270
  # @option opts [Integer] :tile_size Tile size in pixels
@@ -1244,6 +1283,7 @@ module Vips
1244
1283
  # @param opts [Hash] Set of options
1245
1284
  # @option opts [String] :basename Base name to save to
1246
1285
  # @option opts [Vips::ForeignDzLayout] :layout Directory layout
1286
+ # @option opts [Integer] :page_height Set page height for multipage save
1247
1287
  # @option opts [String] :suffix Filename suffix for tiles
1248
1288
  # @option opts [Integer] :overlap Tile overlap in pixels
1249
1289
  # @option opts [Integer] :tile_size Tile size in pixels
@@ -1263,6 +1303,7 @@ module Vips
1263
1303
  # @param opts [Hash] Set of options
1264
1304
  # @option opts [Integer] :compression Compression factor
1265
1305
  # @option opts [Boolean] :interlace Interlace image
1306
+ # @option opts [Integer] :page_height Set page height for multipage save
1266
1307
  # @option opts [String] :profile ICC profile to embed
1267
1308
  # @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
1268
1309
  # @option opts [Boolean] :strip Strip all metadata from image
@@ -1274,6 +1315,7 @@ module Vips
1274
1315
  # @param opts [Hash] Set of options
1275
1316
  # @option opts [Integer] :compression Compression factor
1276
1317
  # @option opts [Boolean] :interlace Interlace image
1318
+ # @option opts [Integer] :page_height Set page height for multipage save
1277
1319
  # @option opts [String] :profile ICC profile to embed
1278
1320
  # @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
1279
1321
  # @option opts [Boolean] :strip Strip all metadata from image
@@ -1284,6 +1326,7 @@ module Vips
1284
1326
  # Save image to jpeg file.
1285
1327
  # @param filename [String] Filename to save to
1286
1328
  # @param opts [Hash] Set of options
1329
+ # @option opts [Integer] :page_height Set page height for multipage save
1287
1330
  # @option opts [Integer] :Q Q factor
1288
1331
  # @option opts [String] :profile ICC profile to embed
1289
1332
  # @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
@@ -1300,6 +1343,7 @@ module Vips
1300
1343
  # @!method jpegsave_buffer(opts = {})
1301
1344
  # Save image to jpeg buffer.
1302
1345
  # @param opts [Hash] Set of options
1346
+ # @option opts [Integer] :page_height Set page height for multipage save
1303
1347
  # @option opts [Integer] :Q Q factor
1304
1348
  # @option opts [String] :profile ICC profile to embed
1305
1349
  # @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
@@ -1316,6 +1360,7 @@ module Vips
1316
1360
  # @!method jpegsave_mime(opts = {})
1317
1361
  # Save image to jpeg mime.
1318
1362
  # @param opts [Hash] Set of options
1363
+ # @option opts [Integer] :page_height Set page height for multipage save
1319
1364
  # @option opts [Integer] :Q Q factor
1320
1365
  # @option opts [String] :profile ICC profile to embed
1321
1366
  # @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
@@ -1333,6 +1378,7 @@ module Vips
1333
1378
  # Save image to webp file.
1334
1379
  # @param filename [String] Filename to save to
1335
1380
  # @param opts [Hash] Set of options
1381
+ # @option opts [Integer] :page_height Set page height for multipage save
1336
1382
  # @option opts [Integer] :Q Q factor
1337
1383
  # @option opts [Boolean] :lossless enable lossless compression
1338
1384
  # @option opts [Vips::ForeignWebpPreset] :preset Preset for lossy compression
@@ -1346,6 +1392,7 @@ module Vips
1346
1392
  # @!method webpsave_buffer(opts = {})
1347
1393
  # Save image to webp buffer.
1348
1394
  # @param opts [Hash] Set of options
1395
+ # @option opts [Integer] :page_height Set page height for multipage save
1349
1396
  # @option opts [Integer] :Q Q factor
1350
1397
  # @option opts [Boolean] :lossless enable lossless compression
1351
1398
  # @option opts [Vips::ForeignWebpPreset] :preset Preset for lossy compression
@@ -1363,6 +1410,7 @@ module Vips
1363
1410
  # @option opts [Vips::ForeignTiffCompression] :compression Compression for this file
1364
1411
  # @option opts [Integer] :Q Q factor
1365
1412
  # @option opts [Vips::ForeignTiffPredictor] :predictor Compression prediction
1413
+ # @option opts [Integer] :page_height Set page height for multipage save
1366
1414
  # @option opts [String] :profile ICC profile to embed
1367
1415
  # @option opts [Boolean] :tile Write a tiled tiff
1368
1416
  # @option opts [Integer] :tile_width Tile width in pixels
@@ -1385,6 +1433,7 @@ module Vips
1385
1433
  # @option opts [Vips::ForeignTiffCompression] :compression Compression for this file
1386
1434
  # @option opts [Integer] :Q Q factor
1387
1435
  # @option opts [Vips::ForeignTiffPredictor] :predictor Compression prediction
1436
+ # @option opts [Integer] :page_height Set page height for multipage save
1388
1437
  # @option opts [String] :profile ICC profile to embed
1389
1438
  # @option opts [Boolean] :tile Write a tiled tiff
1390
1439
  # @option opts [Integer] :tile_width Tile width in pixels
@@ -1405,6 +1454,7 @@ module Vips
1405
1454
  # Save image to fits file.
1406
1455
  # @param filename [String] Filename to save to
1407
1456
  # @param opts [Hash] Set of options
1457
+ # @option opts [Integer] :page_height Set page height for multipage save
1408
1458
  # @option opts [Boolean] :strip Strip all metadata from image
1409
1459
  # @option opts [Array<Double>] :background Background value
1410
1460
  # @return [nil]
@@ -1421,6 +1471,7 @@ module Vips
1421
1471
  # @option opts [Boolean] :linear Reduce in linear light
1422
1472
  # @option opts [String] :import_profile Fallback import profile
1423
1473
  # @option opts [String] :export_profile Fallback export profile
1474
+ # @option opts [Vips::Intent] :intent Rendering intent
1424
1475
  # @return [Vips::Image] Output image
1425
1476
 
1426
1477
  # @!method self.thumbnail_buffer(buffer, width, opts = {})
@@ -1435,6 +1486,21 @@ module Vips
1435
1486
  # @option opts [Boolean] :linear Reduce in linear light
1436
1487
  # @option opts [String] :import_profile Fallback import profile
1437
1488
  # @option opts [String] :export_profile Fallback export profile
1489
+ # @option opts [Vips::Intent] :intent Rendering intent
1490
+ # @return [Vips::Image] Output image
1491
+
1492
+ # @!method thumbnail_image(width, opts = {})
1493
+ # Generate thumbnail from image.
1494
+ # @param width [Integer] Size to this width
1495
+ # @param opts [Hash] Set of options
1496
+ # @option opts [Integer] :height Size to this height
1497
+ # @option opts [Vips::Size] :size Only upsize, only downsize, or both
1498
+ # @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
1499
+ # @option opts [Vips::Interesting] :crop Reduce to fill target rectangle, then crop
1500
+ # @option opts [Boolean] :linear Reduce in linear light
1501
+ # @option opts [String] :import_profile Fallback import profile
1502
+ # @option opts [String] :export_profile Fallback export profile
1503
+ # @option opts [Vips::Intent] :intent Rendering intent
1438
1504
  # @return [Vips::Image] Output image
1439
1505
 
1440
1506
  # @!method mapim(index, opts = {})
@@ -1505,11 +1571,14 @@ module Vips
1505
1571
  # @option opts [Float] :ody Vertical output displacement
1506
1572
  # @option opts [Float] :idx Horizontal input displacement
1507
1573
  # @option opts [Float] :idy Vertical input displacement
1574
+ # @option opts [Array<Double>] :background Background value
1575
+ # @option opts [Vips::Extend] :extend How to generate the extra pixels
1508
1576
  # @return [Vips::Image] Output image
1509
1577
 
1510
1578
  # @!method similarity(opts = {})
1511
1579
  # Similarity transform of an image.
1512
1580
  # @param opts [Hash] Set of options
1581
+ # @option opts [Array<Double>] :background Background value
1513
1582
  # @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
1514
1583
  # @option opts [Float] :scale Scale by this factor
1515
1584
  # @option opts [Float] :angle Rotate anticlockwise by this many degrees
@@ -1524,7 +1593,6 @@ module Vips
1524
1593
  # @param scale [Float] Scale image by this factor
1525
1594
  # @param opts [Hash] Set of options
1526
1595
  # @option opts [Vips::Kernel] :kernel Resampling kernel
1527
- # @option opts [Boolean] :centre Use centre sampling convention
1528
1596
  # @option opts [Float] :vscale Vertical scale image by this factor
1529
1597
  # @return [Vips::Image] Output image
1530
1598
 
@@ -1918,6 +1986,12 @@ module Vips
1918
1986
  # @option opts [Integer] :segments Output Number of discrete contigious regions
1919
1987
  # @return [Vips::Image, Hash<Symbol => Object>] Mask of region labels, Hash of optional output items
1920
1988
 
1989
+ # @!method fill_nearest(opts = {})
1990
+ # Fill image zeros with nearest non-zero pixel.
1991
+ # @param opts [Hash] Set of options
1992
+ # @option opts [Vips::Image] :distance Output Distance to nearest non-zero pixel
1993
+ # @return [Vips::Image, Hash<Symbol => Object>] Value of nearest non-zero pixel, Hash of optional output items
1994
+
1921
1995
  # @!method draw_rect(ink, left, top, width, height, opts = {})
1922
1996
  # Paint a rectangle on an image.
1923
1997
  # @param ink [Array<Double>] Color for pixels
@@ -1,4 +1,4 @@
1
1
  module Vips
2
- VERSION = "2.0.8"
2
+ VERSION = "2.0.9"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-vips
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Cupitt