ruby-vips 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9821647ddcaaa31442cb2f6ce3b488004bfecd1
4
- data.tar.gz: 77f02bd4c937b0b08d78419878728a2d62e47293
3
+ metadata.gz: f9313e9659b31e926e6e1e7dcc71d772528c3e9f
4
+ data.tar.gz: 2f82e18e72ab6c483575cc5c1e30c7e180b2fe7a
5
5
  SHA512:
6
- metadata.gz: a7e07153fe581bb27cb56533e3274abdb3dca1bcc95e33e964606c35ed8aa3ad1007131fee4d2d5543bc704dc52ec52ff90f160ee71da996d2f59fc74b90a3e0
7
- data.tar.gz: 865c2cc4d66b7ea6359225f36f9ae6c17274e1c4e0c34f54efc0a6cdce457cbe72fdb7388692b6c5836ef4c24ee243d26b9d1b9383078d0d2d38b2e65a441384
6
+ metadata.gz: de582b44a3a7228cae2a585db65914984d0274a7f9db225e0d608aaf9d727620d2177b639262e73af22aab99a82736d4aeab56f29e1eab27152b72110454bcbe
7
+ data.tar.gz: 1b38ef7ccabcded40a962ab6336ab744ba06e275560515f13e0499133c4d36029e313a3449794f3a939505caf2c6ac07e03b9a0eec952308cf38ac22b46eab91
@@ -0,0 +1,55 @@
1
+ env:
2
+ global:
3
+ - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
4
+
5
+ env:
6
+ - LIBVIPS=8.4.4
7
+
8
+ dist: trusty
9
+
10
+ addons:
11
+ apt:
12
+ packages:
13
+ - libxml2-dev
14
+ - gettext
15
+ - python-dev
16
+ - liblcms1-dev
17
+ - libmagickwand-dev
18
+ - libopenexr-dev
19
+ - libcfitsio3-dev
20
+ - gobject-introspection
21
+ - libgirepository1.0-dev
22
+ - libgif-dev
23
+ - libgs-dev
24
+ - libgsf-1-dev
25
+ - libmatio-dev
26
+ - libopenslide-dev
27
+ - liborc-0.4-dev
28
+ - libpango1.0-dev
29
+ - libpoppler-glib-dev
30
+ - libwebp-dev
31
+ - libglib2.0-dev
32
+
33
+ language: ruby
34
+ rvm:
35
+ - 2.1
36
+ - 2.2
37
+ - 2.3
38
+
39
+ script: "bundle exec rake"
40
+
41
+ gemfile:
42
+ - Gemfile
43
+
44
+ before_install:
45
+ - uname -a
46
+ - sudo apt-get update
47
+ - wget http://www.vips.ecs.soton.ac.uk/supported/current/vips-$LIBVIPS.tar.gz
48
+ - tar xvf vips-$LIBVIPS.tar.gz
49
+ - cd vips-$LIBVIPS
50
+ - >
51
+ CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0
52
+ ./configure --prefix=/usr
53
+ - make
54
+ - sudo make install
55
+ - sudo ldconfig
@@ -1,5 +1,13 @@
1
1
  # master
2
2
 
3
+ # Version 1.0.4
4
+
5
+ * remove stray comma from some docs lines [John Cupitt]
6
+ * update generated docs for libvips 8.5 [John Cupitt]
7
+ * small doc improvements [John Cupitt]
8
+ * update for gobject-introspection 3.1 [John Cupitt]
9
+ * support ruby 2.4 [John Cupitt]
10
+
3
11
  # Version 1.0.3
4
12
 
5
13
  * doc improvements [John Cupitt]
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # ruby-vips
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/ruby-vips.svg)](https://badge.fury.io/rb/ruby-vips)
4
+ [![Build Status](https://travis-ci.org/jcupitt/ruby-vips.svg?branch=master)](https://travis-ci.org/jcupitt/ruby-vips)
5
+
3
6
  *API break:* version 1.0 of this gem is an API break, see below for some notes
4
7
  on why there is a break and how to update your code.
5
8
  The older `ruby-vips` is still here and still maintained in branch
@@ -8,13 +11,14 @@ The older `ruby-vips` is still here and still maintained in branch
8
11
  This gem provides a Ruby binding for the [vips image processing
9
12
  library](http://www.vips.ecs.soton.ac.uk).
10
13
 
11
- `ruby-vips` is fast and it can work without needing to have the
12
- entire image loaded into memory. Programs that use `ruby-vips` don't
14
+ Programs that use `ruby-vips` don't
13
15
  manipulate images directly, instead they create pipelines of image processing
14
16
  operations building on a source image. When the end of the pipe is connected
15
- to a destination, the whole pipline executes at once, streaming the image
17
+ to a destination, the whole pipeline executes at once, streaming the image
16
18
  in parallel from source to destination a section at a time.
17
19
 
20
+ Because `ruby-vips` is very parallel, it's quick, and because it doesn't need
21
+ to keep entire images in memory, it's light.
18
22
  For example, the benchmark at
19
23
  [vips-benchmarks](https://github.com/stanislaw/vips-benchmarks) loads a large
20
24
  image, crops, shrinks, sharpens and saves again, and repeats 10 times.
@@ -64,9 +68,10 @@ vips-8.2.1
64
68
 
65
69
  ### Other platforms
66
70
 
67
- You need to install libvips from source since 8.2 has not been packaged yet
68
- (Jan 2016).
71
+ Check your package manager and see if the libvips on your system is new enough.
72
+ `ruby-vips` needs libvips 8.2 or later.
69
73
 
74
+ If it's too old, you'll need to build libvips from source.
70
75
  Download a tarball from the
71
76
  [libvips website](http://www.vips.ecs.soton.ac.uk/supported/current), or build
72
77
  from [the git repository](https://github.com/jcupitt/libvips) and see the
data/TODO CHANGED
@@ -1,48 +1,16 @@
1
1
  # Notes
2
2
 
3
- - need something like the old ruby-vips occasional GC stuff, we can fill
4
- memory before a GC is triggered
5
-
6
- need a test case
7
-
8
3
  - mail about the getpoint unimplemented error
9
4
 
10
5
  http://sourceforge.net/p/ruby-gnome2/mailman/ruby-gnome2-devel-en/thread/CAGNS0RuZ5N6bha3M7B0%2BYf2M9-oni44idzZO17mtQiykS%2BmJKQ%40mail.gmail.com/#msg34790843
11
6
 
12
7
  - still missing a few enum docs
13
8
 
14
- - add complex constants, eg.
9
+ - support complex constants, eg.
15
10
 
16
11
  Complex(1, 2)
17
12
  => (1+2i)
18
13
 
19
- - fix travis ... the difficulty is getting a libvips with goi built first,
20
- perhaps copy-paste from libvips .travis.yml
21
-
22
- this is almost enough to do the ruby side:
23
-
24
- ----------
25
- env:
26
- global:
27
- - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
28
-
29
- language: ruby
30
- rvm:
31
- - 2.1
32
- - 2.2
33
- - 2.3
34
-
35
- script: "bundle exec rake"
36
-
37
- gemfile:
38
- - Gemfile
39
-
40
- before_install:
41
- - uname -a
42
- - sudo apt-get update
43
- - sudo apt-get install libvips-dev
44
- -----------
45
-
46
14
  # Common operations
47
15
 
48
16
  - version bump
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -117,7 +117,7 @@ module Vips
117
117
 
118
118
  # call Vips::init
119
119
  init = repository.find(namespace, "init")
120
- succeeded, argv, error = init.invoke(:arguments => [$PROGRAM_NAME])
120
+ succeeded, argv, error = init.invoke([$PROGRAM_NAME])
121
121
 
122
122
  # TODO get the vips error buffer
123
123
  raise error unless succeeded
@@ -106,7 +106,7 @@ module Vips
106
106
  [Vips::Blob, Vips::ArrayDouble, Vips::ArrayImage,
107
107
  Vips::ArrayInt, Vips::RefString].each do |cls|
108
108
  if value.is_a? cls
109
- value, length = value.get
109
+ value = value.get
110
110
 
111
111
  # blobs come from gobject-introspection as arrays ...
112
112
  # repack as strings for convenience
@@ -421,10 +421,11 @@ module Vips
421
421
  # $ vips jpegload
422
422
  # ```
423
423
  #
424
- # at the command-line to see a summary of the available options.
424
+ # at the command-line to see a summary of the available options for the
425
+ # JPEG loader.
425
426
  #
426
427
  # Loading is fast: only enough of the image is loaded to be able to fill
427
- # out the header. Pixels will only be processed when they are needed.
428
+ # out the header. Pixels will only be decompressed when they are needed.
428
429
  #
429
430
  # @!macro [new] vips.loadopts
430
431
  # @param [Hash] opts set of options
@@ -451,8 +452,8 @@ module Vips
451
452
  Vips::call_base loader, nil, option_string, [filename, opts]
452
453
  end
453
454
 
454
- # Create a new {Image} for an image encoded in a format, such as
455
- # JPEG, in a memory string. Load options may be passed encoded as
455
+ # Create a new {Image} for an image encoded, in a format such as
456
+ # JPEG, in a memory string. Load options may be passed as
456
457
  # strings, or appended as a hash. For example:
457
458
  #
458
459
  # ```
@@ -471,11 +472,12 @@ module Vips
471
472
  # $ vips jpegload_buffer
472
473
  # ```
473
474
  #
474
- # at the command-line to see the available options. Only JPEG, PNG and
475
- # TIFF images can be read from memory buffers.
475
+ # at the command-line to see the available options. Not all loaders
476
+ # support load from buffer, but at least JPEG, PNG and
477
+ # TIFF images will work.
476
478
  #
477
479
  # Loading is fast: only enough of the image is loaded to be able to fill
478
- # out the header. Pixels will only be processed when they are needed.
480
+ # out the header. Pixels will only be decompressed when they are needed.
479
481
  #
480
482
  # @param data [String] the data to load from
481
483
  # @param option_string [String] load options as a string
@@ -574,7 +576,7 @@ module Vips
574
576
  # $ vips jpegsave
575
577
  # ```
576
578
  #
577
- # to see all the available options.
579
+ # to see all the available options for JPEG save.
578
580
  #
579
581
  # @!macro [new] vips.saveopts
580
582
  # @param [Hash] opts set of options
@@ -616,7 +618,7 @@ module Vips
616
618
  # $ vips jpegsave
617
619
  # ```
618
620
  #
619
- # to see all the available options.
621
+ # to see all the available options for JPEG save.
620
622
  #
621
623
  # @param format_string [String] save format plus options
622
624
  # @macro vips.saveopts
@@ -695,7 +697,7 @@ module Vips
695
697
  # @return [Object] Value of field
696
698
  def get_value(name)
697
699
  ret, gval = get name
698
- if ret[0] != 0
700
+ if ret != 0
699
701
  raise Vips::Error, "Field #{name} not found."
700
702
  end
701
703
  value = gval.value
@@ -1059,11 +1061,11 @@ module Vips
1059
1061
  # @return [Array<Float>] the pixel values as an array
1060
1062
  def getpoint(x, y)
1061
1063
  # vips has an operation that does this, but we can't call it via
1062
- # gobject-introspection 3.0.7 since it's missing array double
1064
+ # gobject-introspection 3.1 since it's missing array double
1063
1065
  # get
1064
1066
  #
1065
1067
  # remove this def when gobject-introspection updates
1066
- crop(x, y, 1, 1).bandsplit.map {|i| i.avg}
1068
+ crop(x, y, 1, 1).bandsplit.map(&:avg)
1067
1069
  end
1068
1070
 
1069
1071
  # a median filter
@@ -1352,7 +1354,8 @@ module Vips
1352
1354
  print "self." if not member_x
1353
1355
  print "#{nickname}("
1354
1356
  print required_input.map(&:name).join(", ")
1355
- puts ", opts = {})"
1357
+ print ", " if required_input.length > 0
1358
+ puts "opts = {})"
1356
1359
 
1357
1360
  puts "# #{op.description.capitalize}."
1358
1361
 
@@ -82,7 +82,7 @@ module Vips
82
82
  # @param [Hash] opts Set of options
83
83
  # @return [Vips::Image] Output image
84
84
 
85
- # @!method invert(, opts = {})
85
+ # @!method invert(opts = {})
86
86
  # Invert an image.
87
87
  # @param [Hash] opts Set of options
88
88
  # @return [Vips::Image] Output image
@@ -101,12 +101,12 @@ module Vips
101
101
  # @param [Hash] opts Set of options
102
102
  # @return [Vips::Image] Output image
103
103
 
104
- # @!method abs(, opts = {})
104
+ # @!method abs(opts = {})
105
105
  # Absolute value of an image.
106
106
  # @param [Hash] opts Set of options
107
107
  # @return [Vips::Image] Output image
108
108
 
109
- # @!method sign(, opts = {})
109
+ # @!method sign(opts = {})
110
110
  # Unit vector of pixel.
111
111
  # @param [Hash] opts Set of options
112
112
  # @return [Vips::Image] Output image
@@ -138,7 +138,7 @@ module Vips
138
138
  # @return [Vips::Image] Output image
139
139
 
140
140
  # @!method math2_const(c, math2, opts = {})
141
- # Pow( @in, @c ).
141
+ # Binary math operations with a constant.
142
142
  # @param c [Array<Double>] Array of constants
143
143
  # @param math2 [Vips::OperationMath2] math to perform
144
144
  # @param [Hash] opts Set of options
@@ -156,12 +156,12 @@ module Vips
156
156
  # @param [Hash] opts Set of options
157
157
  # @return [Vips::Image] Output image
158
158
 
159
- # @!method avg(, opts = {})
159
+ # @!method avg(opts = {})
160
160
  # Find image average.
161
161
  # @param [Hash] opts Set of options
162
162
  # @return [Float] Output value
163
163
 
164
- # @!method min(, opts = {})
164
+ # @!method min(opts = {})
165
165
  # Find image minimum.
166
166
  # @param [Hash] opts Set of options
167
167
  # @option opts [Integer] :size Number of minimum values to find
@@ -172,7 +172,7 @@ module Vips
172
172
  # @option opts [Array<Integer>] :y_array Output Array of vertical positions
173
173
  # @return [Float, Hash<Symbol => Object>] Output value, Hash of optional output items
174
174
 
175
- # @!method max(, opts = {})
175
+ # @!method max(opts = {})
176
176
  # Find image maximum.
177
177
  # @param [Hash] opts Set of options
178
178
  # @option opts [Integer] :size Number of maximum values to find
@@ -183,23 +183,23 @@ module Vips
183
183
  # @option opts [Array<Integer>] :y_array Output Array of vertical positions
184
184
  # @return [Float, Hash<Symbol => Object>] Output value, Hash of optional output items
185
185
 
186
- # @!method deviate(, opts = {})
186
+ # @!method deviate(opts = {})
187
187
  # Find image standard deviation.
188
188
  # @param [Hash] opts Set of options
189
189
  # @return [Float] Output value
190
190
 
191
- # @!method stats(, opts = {})
191
+ # @!method stats(opts = {})
192
192
  # Find image average.
193
193
  # @param [Hash] opts Set of options
194
194
  # @return [Vips::Image] Output array of statistics
195
195
 
196
- # @!method hist_find(, opts = {})
196
+ # @!method hist_find(opts = {})
197
197
  # Find image histogram.
198
198
  # @param [Hash] opts Set of options
199
199
  # @option opts [Integer] :band Find histogram of band
200
200
  # @return [Vips::Image] Output histogram
201
201
 
202
- # @!method hist_find_ndim(, opts = {})
202
+ # @!method hist_find_ndim(opts = {})
203
203
  # Find n-dimensional image histogram.
204
204
  # @param [Hash] opts Set of options
205
205
  # @option opts [Integer] :bins Number of bins in each dimension
@@ -211,14 +211,14 @@ module Vips
211
211
  # @param [Hash] opts Set of options
212
212
  # @return [Vips::Image] Output histogram
213
213
 
214
- # @!method hough_line(, opts = {})
214
+ # @!method hough_line(opts = {})
215
215
  # Find hough line transform.
216
216
  # @param [Hash] opts Set of options
217
217
  # @option opts [Integer] :width horizontal size of parameter space
218
218
  # @option opts [Integer] :height Vertical size of parameter space
219
219
  # @return [Vips::Image] Output image
220
220
 
221
- # @!method hough_circle(, opts = {})
221
+ # @!method hough_circle(opts = {})
222
222
  # Find hough circle transform.
223
223
  # @param [Hash] opts Set of options
224
224
  # @option opts [Integer] :scale Scale down dimensions by this factor
@@ -226,12 +226,12 @@ module Vips
226
226
  # @option opts [Integer] :max_radius Largest radius to search for
227
227
  # @return [Vips::Image] Output image
228
228
 
229
- # @!method project(, opts = {})
229
+ # @!method project(opts = {})
230
230
  # Find image projections.
231
231
  # @param [Hash] opts Set of options
232
232
  # @return [Array<] Sums of columns, Sums of rows
233
233
 
234
- # @!method profile(, opts = {})
234
+ # @!method profile(opts = {})
235
235
  # Find image profiles.
236
236
  # @param [Hash] opts Set of options
237
237
  # @return [Array<] First non-zero pixel in column, First non-zero pixel in row
@@ -254,7 +254,7 @@ module Vips
254
254
  # @param [Hash] opts Set of options
255
255
  # @return [Array<Double>] Array of output values
256
256
 
257
- # @!method copy(, opts = {})
257
+ # @!method copy(opts = {})
258
258
  # Copy an image.
259
259
  # @param [Hash] opts Set of options
260
260
  # @option opts [Integer] :width Image width in pixels
@@ -269,7 +269,7 @@ module Vips
269
269
  # @option opts [Integer] :yoffset Vertical offset of origin
270
270
  # @return [Vips::Image] Output image
271
271
 
272
- # @!method tilecache(, opts = {})
272
+ # @!method tilecache(opts = {})
273
273
  # Cache an image as a set of tiles.
274
274
  # @param [Hash] opts Set of options
275
275
  # @option opts [Integer] :tile_width Tile width in pixels
@@ -280,7 +280,7 @@ module Vips
280
280
  # @option opts [Boolean] :persistent Keep cache between evaluations
281
281
  # @return [Vips::Image] Output image
282
282
 
283
- # @!method linecache(, opts = {})
283
+ # @!method linecache(opts = {})
284
284
  # Cache an image as a set of lines.
285
285
  # @param [Hash] opts Set of options
286
286
  # @option opts [Integer] :tile_height Tile height in pixels
@@ -289,7 +289,7 @@ module Vips
289
289
  # @option opts [Boolean] :persistent Keep cache between evaluations
290
290
  # @return [Vips::Image] Output image
291
291
 
292
- # @!method sequential(, opts = {})
292
+ # @!method sequential(opts = {})
293
293
  # Check sequential access.
294
294
  # @param [Hash] opts Set of options
295
295
  # @option opts [Boolean] :trace trace pixel requests
@@ -297,7 +297,7 @@ module Vips
297
297
  # @option opts [Vips::Access] :access Expected access pattern
298
298
  # @return [Vips::Image] Output image
299
299
 
300
- # @!method cache(, opts = {})
300
+ # @!method cache(opts = {})
301
301
  # Cache an image.
302
302
  # @param [Hash] opts Set of options
303
303
  # @option opts [Integer] :tile_width Tile width in pixels
@@ -394,7 +394,7 @@ module Vips
394
394
  # @option opts [Integer] :index Select this band element from sorted list
395
395
  # @return [Vips::Image] Output image
396
396
 
397
- # @!method bandmean(, opts = {})
397
+ # @!method bandmean(opts = {})
398
398
  # Band-wise average.
399
399
  # @param [Hash] opts Set of options
400
400
  # @return [Vips::Image] Output image
@@ -425,13 +425,13 @@ module Vips
425
425
  # @param [Hash] opts Set of options
426
426
  # @return [Vips::Image] Output image
427
427
 
428
- # @!method rot45(, opts = {})
428
+ # @!method rot45(opts = {})
429
429
  # Rotate an image.
430
430
  # @param [Hash] opts Set of options
431
431
  # @option opts [Vips::Angle45] :angle Angle to rotate image
432
432
  # @return [Vips::Image] Output image
433
433
 
434
- # @!method autorot(, opts = {})
434
+ # @!method autorot(opts = {})
435
435
  # Autorotate image by exif tag.
436
436
  # @param [Hash] opts Set of options
437
437
  # @option opts [Vips::Angle] :angle Output Angle image was rotated by
@@ -443,32 +443,32 @@ module Vips
443
443
  # @param [Hash] opts Set of options
444
444
  # @return [Vips::Image] Output image
445
445
 
446
- # @!method bandfold(, opts = {})
446
+ # @!method bandfold(opts = {})
447
447
  # Fold up x axis into bands.
448
448
  # @param [Hash] opts Set of options
449
449
  # @option opts [Integer] :factor Fold by this factor
450
450
  # @return [Vips::Image] Output image
451
451
 
452
- # @!method bandunfold(, opts = {})
452
+ # @!method bandunfold(opts = {})
453
453
  # Unfold image bands into x axis.
454
454
  # @param [Hash] opts Set of options
455
455
  # @option opts [Integer] :factor Unfold by this factor
456
456
  # @return [Vips::Image] Output image
457
457
 
458
- # @!method flatten(, opts = {})
458
+ # @!method flatten(opts = {})
459
459
  # Flatten alpha out of an image.
460
460
  # @param [Hash] opts Set of options
461
461
  # @option opts [Array<Double>] :background Background value
462
462
  # @option opts [Float] :max_alpha Maximum value of alpha channel
463
463
  # @return [Vips::Image] Output image
464
464
 
465
- # @!method premultiply(, opts = {})
465
+ # @!method premultiply(opts = {})
466
466
  # Premultiply image alpha.
467
467
  # @param [Hash] opts Set of options
468
468
  # @option opts [Float] :max_alpha Maximum value of alpha channel
469
469
  # @return [Vips::Image] Output image
470
470
 
471
- # @!method unpremultiply(, opts = {})
471
+ # @!method unpremultiply(opts = {})
472
472
  # Unpremultiply image alpha.
473
473
  # @param [Hash] opts Set of options
474
474
  # @option opts [Float] :max_alpha Maximum value of alpha channel
@@ -482,14 +482,14 @@ module Vips
482
482
  # @param [Hash] opts Set of options
483
483
  # @return [Vips::Image] Output image
484
484
 
485
- # @!method scale(, opts = {})
485
+ # @!method scale(opts = {})
486
486
  # Scale an image to uchar.
487
487
  # @param [Hash] opts Set of options
488
488
  # @option opts [Boolean] :log Log scale
489
489
  # @option opts [Float] :exp Exponent for log scale
490
490
  # @return [Vips::Image] Output image
491
491
 
492
- # @!method wrap(, opts = {})
492
+ # @!method wrap(opts = {})
493
493
  # Wrap image origin.
494
494
  # @param [Hash] opts Set of options
495
495
  # @option opts [Integer] :x Left edge of input in output
@@ -511,23 +511,23 @@ module Vips
511
511
  # @option opts [Boolean] :point Point sample
512
512
  # @return [Vips::Image] Output image
513
513
 
514
- # @!method msb(, opts = {})
514
+ # @!method msb(opts = {})
515
515
  # Pick most-significant byte from an image.
516
516
  # @param [Hash] opts Set of options
517
517
  # @option opts [Integer] :band Band to msb
518
518
  # @return [Vips::Image] Output image
519
519
 
520
- # @!method byteswap(, opts = {})
520
+ # @!method byteswap(opts = {})
521
521
  # Byteswap an image.
522
522
  # @param [Hash] opts Set of options
523
523
  # @return [Vips::Image] Output image
524
524
 
525
- # @!method falsecolour(, opts = {})
525
+ # @!method falsecolour(opts = {})
526
526
  # False-colour an image.
527
527
  # @param [Hash] opts Set of options
528
528
  # @return [Vips::Image] Output image
529
529
 
530
- # @!method gamma(, opts = {})
530
+ # @!method gamma(opts = {})
531
531
  # Gamma an image.
532
532
  # @param [Hash] opts Set of options
533
533
  # @option opts [Float] :exponent Gamma factor
@@ -762,18 +762,18 @@ module Vips
762
762
  # @option opts [Boolean] :nodc Remove DC component
763
763
  # @return [Vips::Image] Output image
764
764
 
765
- # @!method buildlut(, opts = {})
765
+ # @!method buildlut(opts = {})
766
766
  # Build a look-up table.
767
767
  # @param [Hash] opts Set of options
768
768
  # @return [Vips::Image] Output image
769
769
 
770
- # @!method invertlut(, opts = {})
770
+ # @!method invertlut(opts = {})
771
771
  # Build an inverted look-up table.
772
772
  # @param [Hash] opts Set of options
773
773
  # @option opts [Integer] :size LUT size to generate
774
774
  # @return [Vips::Image] Output image
775
775
 
776
- # @!method self.tonelut(, opts = {})
776
+ # @!method self.tonelut(opts = {})
777
777
  # Build a look-up table.
778
778
  # @param [Hash] opts Set of options
779
779
  # @option opts [Integer] :in_max Size of LUT to build
@@ -788,7 +788,7 @@ module Vips
788
788
  # @option opts [Float] :H Adjust highlights by this much
789
789
  # @return [Vips::Image] Output image
790
790
 
791
- # @!method self.identity(, opts = {})
791
+ # @!method self.identity(opts = {})
792
792
  # Make a 1d image where pixel values are indexes.
793
793
  # @param [Hash] opts Set of options
794
794
  # @option opts [Integer] :bands Number of bands in LUT
@@ -828,6 +828,7 @@ module Vips
828
828
  # @option opts [Boolean] :disc Open to disc
829
829
  # @option opts [Vips::Access] :access Required access pattern for this file
830
830
  # @option opts [Integer] :skip Skip this many lines at the start of the file
831
+ # @option opts [Boolean] :fail Fail on first warning
831
832
  # @option opts [Integer] :lines Read this many lines from the file
832
833
  # @option opts [String] :whitespace Set of whitespace characters
833
834
  # @option opts [String] :separator Set of separator characters
@@ -840,6 +841,7 @@ module Vips
840
841
  # @param [Hash] opts Set of options
841
842
  # @option opts [Boolean] :disc Open to disc
842
843
  # @option opts [Vips::Access] :access Required access pattern for this file
844
+ # @option opts [Boolean] :fail Fail on first warning
843
845
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
844
846
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
845
847
 
@@ -852,6 +854,7 @@ module Vips
852
854
  # @param [Hash] opts Set of options
853
855
  # @option opts [Boolean] :disc Open to disc
854
856
  # @option opts [Vips::Access] :access Required access pattern for this file
857
+ # @option opts [Boolean] :fail Fail on first warning
855
858
  # @option opts [Integer] :offset Offset in bytes from start of file
856
859
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
857
860
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
@@ -862,6 +865,7 @@ module Vips
862
865
  # @param [Hash] opts Set of options
863
866
  # @option opts [Boolean] :disc Open to disc
864
867
  # @option opts [Vips::Access] :access Required access pattern for this file
868
+ # @option opts [Boolean] :fail Fail on first warning
865
869
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
866
870
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
867
871
 
@@ -871,6 +875,7 @@ module Vips
871
875
  # @param [Hash] opts Set of options
872
876
  # @option opts [Boolean] :disc Open to disc
873
877
  # @option opts [Vips::Access] :access Required access pattern for this file
878
+ # @option opts [Boolean] :fail Fail on first warning
874
879
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
875
880
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
876
881
 
@@ -880,6 +885,7 @@ module Vips
880
885
  # @param [Hash] opts Set of options
881
886
  # @option opts [Boolean] :disc Open to disc
882
887
  # @option opts [Vips::Access] :access Required access pattern for this file
888
+ # @option opts [Boolean] :fail Fail on first warning
883
889
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
884
890
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
885
891
 
@@ -889,6 +895,7 @@ module Vips
889
895
  # @param [Hash] opts Set of options
890
896
  # @option opts [Boolean] :disc Open to disc
891
897
  # @option opts [Vips::Access] :access Required access pattern for this file
898
+ # @option opts [Boolean] :fail Fail on first warning
892
899
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
893
900
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
894
901
 
@@ -899,6 +906,7 @@ module Vips
899
906
  # @option opts [Boolean] :disc Open to disc
900
907
  # @option opts [Vips::Access] :access Required access pattern for this file
901
908
  # @option opts [Integer] :page Load this page from the file
909
+ # @option opts [Boolean] :fail Fail on first warning
902
910
  # @option opts [Integer] :n Load this many pages
903
911
  # @option opts [Float] :dpi Render at this DPI
904
912
  # @option opts [Float] :scale Scale output by this factor
@@ -912,6 +920,7 @@ module Vips
912
920
  # @option opts [Boolean] :disc Open to disc
913
921
  # @option opts [Vips::Access] :access Required access pattern for this file
914
922
  # @option opts [Integer] :page Load this page from the file
923
+ # @option opts [Boolean] :fail Fail on first warning
915
924
  # @option opts [Integer] :n Load this many pages
916
925
  # @option opts [Float] :dpi Render at this DPI
917
926
  # @option opts [Float] :scale Scale output by this factor
@@ -924,6 +933,7 @@ module Vips
924
933
  # @param [Hash] opts Set of options
925
934
  # @option opts [Boolean] :disc Open to disc
926
935
  # @option opts [Vips::Access] :access Required access pattern for this file
936
+ # @option opts [Boolean] :fail Fail on first warning
927
937
  # @option opts [Float] :dpi Render at this DPI
928
938
  # @option opts [Float] :scale Scale output by this factor
929
939
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -935,6 +945,7 @@ module Vips
935
945
  # @param [Hash] opts Set of options
936
946
  # @option opts [Boolean] :disc Open to disc
937
947
  # @option opts [Vips::Access] :access Required access pattern for this file
948
+ # @option opts [Boolean] :fail Fail on first warning
938
949
  # @option opts [Float] :dpi Render at this DPI
939
950
  # @option opts [Float] :scale Scale output by this factor
940
951
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -944,9 +955,11 @@ module Vips
944
955
  # Load gif with giflib.
945
956
  # @param filename [String] Filename to load from
946
957
  # @param [Hash] opts Set of options
958
+ # @option opts [Integer] :n Load this many pages
947
959
  # @option opts [Boolean] :disc Open to disc
948
960
  # @option opts [Vips::Access] :access Required access pattern for this file
949
961
  # @option opts [Integer] :page Load this page from the file
962
+ # @option opts [Boolean] :fail Fail on first warning
950
963
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
951
964
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
952
965
 
@@ -954,9 +967,11 @@ module Vips
954
967
  # Load gif with giflib.
955
968
  # @param buffer [Vips::Blob] Buffer to load from
956
969
  # @param [Hash] opts Set of options
970
+ # @option opts [Integer] :n Load this many pages
957
971
  # @option opts [Boolean] :disc Open to disc
958
972
  # @option opts [Vips::Access] :access Required access pattern for this file
959
973
  # @option opts [Integer] :page Load this page from the file
974
+ # @option opts [Boolean] :fail Fail on first warning
960
975
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
961
976
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
962
977
 
@@ -966,6 +981,7 @@ module Vips
966
981
  # @param [Hash] opts Set of options
967
982
  # @option opts [Boolean] :disc Open to disc
968
983
  # @option opts [Vips::Access] :access Required access pattern for this file
984
+ # @option opts [Boolean] :fail Fail on first warning
969
985
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
970
986
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
971
987
 
@@ -975,6 +991,7 @@ module Vips
975
991
  # @param [Hash] opts Set of options
976
992
  # @option opts [Boolean] :disc Open to disc
977
993
  # @option opts [Vips::Access] :access Required access pattern for this file
994
+ # @option opts [Boolean] :fail Fail on first warning
978
995
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
979
996
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
980
997
 
@@ -984,6 +1001,7 @@ module Vips
984
1001
  # @param [Hash] opts Set of options
985
1002
  # @option opts [Boolean] :disc Open to disc
986
1003
  # @option opts [Vips::Access] :access Required access pattern for this file
1004
+ # @option opts [Boolean] :fail Fail on first warning
987
1005
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
988
1006
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
989
1007
 
@@ -1018,6 +1036,7 @@ module Vips
1018
1036
  # @option opts [Boolean] :disc Open to disc
1019
1037
  # @option opts [Vips::Access] :access Required access pattern for this file
1020
1038
  # @option opts [Integer] :shrink Shrink factor on load
1039
+ # @option opts [Boolean] :fail Fail on first warning
1021
1040
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1022
1041
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1023
1042
 
@@ -1028,6 +1047,7 @@ module Vips
1028
1047
  # @option opts [Boolean] :disc Open to disc
1029
1048
  # @option opts [Vips::Access] :access Required access pattern for this file
1030
1049
  # @option opts [Integer] :shrink Shrink factor on load
1050
+ # @option opts [Boolean] :fail Fail on first warning
1031
1051
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1032
1052
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1033
1053
 
@@ -1038,6 +1058,8 @@ module Vips
1038
1058
  # @option opts [Boolean] :disc Open to disc
1039
1059
  # @option opts [Vips::Access] :access Required access pattern for this file
1040
1060
  # @option opts [Integer] :page Load this page from the image
1061
+ # @option opts [Boolean] :fail Fail on first warning
1062
+ # @option opts [Integer] :n Load this many pages
1041
1063
  # @option opts [Boolean] :autorotate Rotate image using orientation tag
1042
1064
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1043
1065
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
@@ -1049,6 +1071,8 @@ module Vips
1049
1071
  # @option opts [Boolean] :disc Open to disc
1050
1072
  # @option opts [Vips::Access] :access Required access pattern for this file
1051
1073
  # @option opts [Integer] :page Load this page from the image
1074
+ # @option opts [Boolean] :fail Fail on first warning
1075
+ # @option opts [Integer] :n Load this many pages
1052
1076
  # @option opts [Boolean] :autorotate Rotate image using orientation tag
1053
1077
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1054
1078
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
@@ -1060,6 +1084,7 @@ module Vips
1060
1084
  # @option opts [Boolean] :disc Open to disc
1061
1085
  # @option opts [Vips::Access] :access Required access pattern for this file
1062
1086
  # @option opts [Integer] :level Load this level from the file
1087
+ # @option opts [Boolean] :fail Fail on first warning
1063
1088
  # @option opts [Boolean] :autocrop Crop to image bounds
1064
1089
  # @option opts [String] :associated Load this associated image
1065
1090
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
@@ -1069,11 +1094,12 @@ module Vips
1069
1094
  # Load file with imagemagick.
1070
1095
  # @param filename [String] Filename to load from
1071
1096
  # @param [Hash] opts Set of options
1072
- # @option opts [Boolean] :all_frames Read all frames from an image
1073
1097
  # @option opts [String] :density Canvas resolution for rendering vector formats like SVG
1074
1098
  # @option opts [Integer] :page Load this page from the file
1099
+ # @option opts [Integer] :n Load this many pages
1075
1100
  # @option opts [Boolean] :disc Open to disc
1076
1101
  # @option opts [Vips::Access] :access Required access pattern for this file
1102
+ # @option opts [Boolean] :fail Fail on first warning
1077
1103
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1078
1104
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1079
1105
 
@@ -1081,11 +1107,12 @@ module Vips
1081
1107
  # Load buffer with imagemagick.
1082
1108
  # @param buffer [Vips::Blob] Buffer to load from
1083
1109
  # @param [Hash] opts Set of options
1084
- # @option opts [Boolean] :all_frames Read all frames from an image
1085
1110
  # @option opts [String] :density Canvas resolution for rendering vector formats like SVG
1086
1111
  # @option opts [Integer] :page Load this page from the file
1112
+ # @option opts [Integer] :n Load this many pages
1087
1113
  # @option opts [Boolean] :disc Open to disc
1088
1114
  # @option opts [Vips::Access] :access Required access pattern for this file
1115
+ # @option opts [Boolean] :fail Fail on first warning
1089
1116
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1090
1117
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1091
1118
 
@@ -1095,6 +1122,7 @@ module Vips
1095
1122
  # @param [Hash] opts Set of options
1096
1123
  # @option opts [Boolean] :disc Open to disc
1097
1124
  # @option opts [Vips::Access] :access Required access pattern for this file
1125
+ # @option opts [Boolean] :fail Fail on first warning
1098
1126
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1099
1127
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1100
1128
 
@@ -1104,6 +1132,7 @@ module Vips
1104
1132
  # @param [Hash] opts Set of options
1105
1133
  # @option opts [Boolean] :disc Open to disc
1106
1134
  # @option opts [Vips::Access] :access Required access pattern for this file
1135
+ # @option opts [Boolean] :fail Fail on first warning
1107
1136
  # @option opts [Vips::ForeignFlags] :flags Output Flags for this file
1108
1137
  # @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
1109
1138
 
@@ -1124,7 +1153,7 @@ module Vips
1124
1153
  # @option opts [Array<Double>] :background Background value
1125
1154
  # @return [nil]
1126
1155
 
1127
- # @!method matrixprint(, opts = {})
1156
+ # @!method matrixprint(opts = {})
1128
1157
  # Print matrix.
1129
1158
  # @param [Hash] opts Set of options
1130
1159
  # @option opts [Boolean] :strip Strip all metadata from image
@@ -1173,7 +1202,7 @@ module Vips
1173
1202
  # @option opts [Array<Double>] :background Background value
1174
1203
  # @return [nil]
1175
1204
 
1176
- # @!method radsave_buffer(, opts = {})
1205
+ # @!method radsave_buffer(opts = {})
1177
1206
  # Save image to radiance buffer.
1178
1207
  # @param [Hash] opts Set of options
1179
1208
  # @option opts [Boolean] :strip Strip all metadata from image
@@ -1181,9 +1210,10 @@ module Vips
1181
1210
  # @return [Vips::Blob] Buffer to save to
1182
1211
 
1183
1212
  # @!method dzsave(filename, opts = {})
1184
- # Save image to deep zoom format.
1213
+ # Save image to deepzoom file.
1185
1214
  # @param filename [String] Filename to save to
1186
1215
  # @param [Hash] opts Set of options
1216
+ # @option opts [String] :basename Base name to save to
1187
1217
  # @option opts [Vips::ForeignDzLayout] :layout Directory layout
1188
1218
  # @option opts [String] :suffix Filename suffix for tiles
1189
1219
  # @option opts [Integer] :overlap Tile overlap in pixels
@@ -1198,6 +1228,24 @@ module Vips
1198
1228
  # @option opts [Array<Double>] :background Background value
1199
1229
  # @return [nil]
1200
1230
 
1231
+ # @!method dzsave_buffer(opts = {})
1232
+ # Save image to dz buffer.
1233
+ # @param [Hash] opts Set of options
1234
+ # @option opts [String] :basename Base name to save to
1235
+ # @option opts [Vips::ForeignDzLayout] :layout Directory layout
1236
+ # @option opts [String] :suffix Filename suffix for tiles
1237
+ # @option opts [Integer] :overlap Tile overlap in pixels
1238
+ # @option opts [Integer] :tile_size Tile size in pixels
1239
+ # @option opts [Vips::ForeignDzDepth] :depth Pyramid depth
1240
+ # @option opts [Boolean] :centre Center image in tile
1241
+ # @option opts [Vips::Angle] :angle Rotate image during save
1242
+ # @option opts [Vips::ForeignDzContainer] :container Pyramid container type
1243
+ # @option opts [Boolean] :properties Write a properties file to the output directory
1244
+ # @option opts [Integer] :compression ZIP deflate compression level
1245
+ # @option opts [Boolean] :strip Strip all metadata from image
1246
+ # @option opts [Array<Double>] :background Background value
1247
+ # @return [Vips::Blob] Buffer to save to
1248
+
1201
1249
  # @!method pngsave(filename, opts = {})
1202
1250
  # Save image to png file.
1203
1251
  # @param filename [String] Filename to save to
@@ -1210,7 +1258,7 @@ module Vips
1210
1258
  # @option opts [Array<Double>] :background Background value
1211
1259
  # @return [nil]
1212
1260
 
1213
- # @!method pngsave_buffer(, opts = {})
1261
+ # @!method pngsave_buffer(opts = {})
1214
1262
  # Save image to png buffer.
1215
1263
  # @param [Hash] opts Set of options
1216
1264
  # @option opts [Integer] :compression Compression factor
@@ -1238,7 +1286,7 @@ module Vips
1238
1286
  # @option opts [Array<Double>] :background Background value
1239
1287
  # @return [nil]
1240
1288
 
1241
- # @!method jpegsave_buffer(, opts = {})
1289
+ # @!method jpegsave_buffer(opts = {})
1242
1290
  # Save image to jpeg buffer.
1243
1291
  # @param [Hash] opts Set of options
1244
1292
  # @option opts [Integer] :Q Q factor
@@ -1254,7 +1302,7 @@ module Vips
1254
1302
  # @option opts [Array<Double>] :background Background value
1255
1303
  # @return [Vips::Blob] Buffer to save to
1256
1304
 
1257
- # @!method jpegsave_mime(, opts = {})
1305
+ # @!method jpegsave_mime(opts = {})
1258
1306
  # Save image to jpeg mime.
1259
1307
  # @param [Hash] opts Set of options
1260
1308
  # @option opts [Integer] :Q Q factor
@@ -1284,7 +1332,7 @@ module Vips
1284
1332
  # @option opts [Array<Double>] :background Background value
1285
1333
  # @return [nil]
1286
1334
 
1287
- # @!method webpsave_buffer(, opts = {})
1335
+ # @!method webpsave_buffer(opts = {})
1288
1336
  # Save image to webp buffer.
1289
1337
  # @param [Hash] opts Set of options
1290
1338
  # @option opts [Integer] :Q Q factor
@@ -1320,6 +1368,28 @@ module Vips
1320
1368
  # @option opts [Array<Double>] :background Background value
1321
1369
  # @return [nil]
1322
1370
 
1371
+ # @!method tiffsave_buffer(opts = {})
1372
+ # Save image to tiff buffer.
1373
+ # @param [Hash] opts Set of options
1374
+ # @option opts [Vips::ForeignTiffCompression] :compression Compression for this file
1375
+ # @option opts [Integer] :Q Q factor
1376
+ # @option opts [Vips::ForeignTiffPredictor] :predictor Compression prediction
1377
+ # @option opts [String] :profile ICC profile to embed
1378
+ # @option opts [Boolean] :tile Write a tiled tiff
1379
+ # @option opts [Integer] :tile_width Tile width in pixels
1380
+ # @option opts [Integer] :tile_height Tile height in pixels
1381
+ # @option opts [Boolean] :pyramid Write a pyramidal tiff
1382
+ # @option opts [Boolean] :squash Squash images down to 1 bit
1383
+ # @option opts [Boolean] :miniswhite Use 0 for white in 1-bit images
1384
+ # @option opts [Vips::ForeignTiffResunit] :resunit Resolution unit
1385
+ # @option opts [Float] :xres Horizontal resolution in pixels/mm
1386
+ # @option opts [Float] :yres Vertical resolution in pixels/mm
1387
+ # @option opts [Boolean] :bigtiff Write a bigtiff image
1388
+ # @option opts [Boolean] :properties Write a properties document to IMAGEDESCRIPTION
1389
+ # @option opts [Boolean] :strip Strip all metadata from image
1390
+ # @option opts [Array<Double>] :background Background value
1391
+ # @return [Vips::Blob] Buffer to save to
1392
+
1323
1393
  # @!method fitssave(filename, opts = {})
1324
1394
  # Save image to fits file.
1325
1395
  # @param filename [String] Filename to save to
@@ -1328,6 +1398,34 @@ module Vips
1328
1398
  # @option opts [Array<Double>] :background Background value
1329
1399
  # @return [nil]
1330
1400
 
1401
+ # @!method self.thumbnail(filename, width, opts = {})
1402
+ # Generate thumbnail from file.
1403
+ # @param filename [String] Filename to read from
1404
+ # @param width [Integer] Size to this width
1405
+ # @param [Hash] opts Set of options
1406
+ # @option opts [Integer] :height Size to this height
1407
+ # @option opts [Vips::Size] :size Only upsize, only downsize, or both
1408
+ # @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
1409
+ # @option opts [Boolean] :crop Reduce to fill target rectangle, then crop
1410
+ # @option opts [Boolean] :linear Reduce in linear light
1411
+ # @option opts [String] :import_profile Fallback import profile
1412
+ # @option opts [String] :export_profile Fallback export profile
1413
+ # @return [Vips::Image] Output image
1414
+
1415
+ # @!method self.thumbnail_buffer(buffer, width, opts = {})
1416
+ # Generate thumbnail from buffer.
1417
+ # @param buffer [Vips::Blob] Buffer to load from
1418
+ # @param width [Integer] Size to this width
1419
+ # @param [Hash] opts Set of options
1420
+ # @option opts [Integer] :height Size to this height
1421
+ # @option opts [Vips::Size] :size Only upsize, only downsize, or both
1422
+ # @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
1423
+ # @option opts [Boolean] :crop Reduce to fill target rectangle, then crop
1424
+ # @option opts [Boolean] :linear Reduce in linear light
1425
+ # @option opts [String] :import_profile Fallback import profile
1426
+ # @option opts [String] :export_profile Fallback export profile
1427
+ # @return [Vips::Image] Output image
1428
+
1331
1429
  # @!method mapim(index, opts = {})
1332
1430
  # Resample with an mapim image.
1333
1431
  # @param index [Vips::Image] Index pixels with this
@@ -1359,6 +1457,7 @@ module Vips
1359
1457
  # @param hshrink [Float] Horizontal shrink factor
1360
1458
  # @param [Hash] opts Set of options
1361
1459
  # @option opts [Vips::Kernel] :kernel Resampling kernel
1460
+ # @option opts [Boolean] :centre Use centre sampling convention
1362
1461
  # @return [Vips::Image] Output image
1363
1462
 
1364
1463
  # @!method reducev(vshrink, opts = {})
@@ -1366,6 +1465,7 @@ module Vips
1366
1465
  # @param vshrink [Float] Vertical shrink factor
1367
1466
  # @param [Hash] opts Set of options
1368
1467
  # @option opts [Vips::Kernel] :kernel Resampling kernel
1468
+ # @option opts [Boolean] :centre Use centre sampling convention
1369
1469
  # @return [Vips::Image] Output image
1370
1470
 
1371
1471
  # @!method reduce(hshrink, vshrink, opts = {})
@@ -1374,6 +1474,7 @@ module Vips
1374
1474
  # @param vshrink [Float] Vertical shrink factor
1375
1475
  # @param [Hash] opts Set of options
1376
1476
  # @option opts [Vips::Kernel] :kernel Resampling kernel
1477
+ # @option opts [Boolean] :centre Use centre sampling convention
1377
1478
  # @return [Vips::Image] Output image
1378
1479
 
1379
1480
  # @!method quadratic(coeff, opts = {})
@@ -1395,7 +1496,7 @@ module Vips
1395
1496
  # @option opts [Float] :idy Vertical input displacement
1396
1497
  # @return [Vips::Image] Output image
1397
1498
 
1398
- # @!method similarity(, opts = {})
1499
+ # @!method similarity(opts = {})
1399
1500
  # Similarity transform of an image.
1400
1501
  # @param [Hash] opts Set of options
1401
1502
  # @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
@@ -1412,6 +1513,7 @@ module Vips
1412
1513
  # @param scale [Float] Scale image by this factor
1413
1514
  # @param [Hash] opts Set of options
1414
1515
  # @option opts [Vips::Kernel] :kernel Resampling kernel
1516
+ # @option opts [Boolean] :centre Use centre sampling convention
1415
1517
  # @option opts [Float] :vscale Vertical scale image by this factor
1416
1518
  # @return [Vips::Image] Output image
1417
1519
 
@@ -1422,114 +1524,114 @@ module Vips
1422
1524
  # @option opts [Vips::Interpretation] :source_space Source colour space
1423
1525
  # @return [Vips::Image] Output image
1424
1526
 
1425
- # @!method Lab2XYZ(, opts = {})
1527
+ # @!method Lab2XYZ(opts = {})
1426
1528
  # Transform cielab to xyz.
1427
1529
  # @param [Hash] opts Set of options
1428
1530
  # @option opts [Array<Double>] :temp Colour temperature
1429
1531
  # @return [Vips::Image] Output image
1430
1532
 
1431
- # @!method XYZ2Lab(, opts = {})
1533
+ # @!method XYZ2Lab(opts = {})
1432
1534
  # Transform xyz to lab.
1433
1535
  # @param [Hash] opts Set of options
1434
1536
  # @option opts [Array<Double>] :temp Colour temperature
1435
1537
  # @return [Vips::Image] Output image
1436
1538
 
1437
- # @!method Lab2LCh(, opts = {})
1539
+ # @!method Lab2LCh(opts = {})
1438
1540
  # Transform lab to lch.
1439
1541
  # @param [Hash] opts Set of options
1440
1542
  # @return [Vips::Image] Output image
1441
1543
 
1442
- # @!method LCh2Lab(, opts = {})
1544
+ # @!method LCh2Lab(opts = {})
1443
1545
  # Transform lch to lab.
1444
1546
  # @param [Hash] opts Set of options
1445
1547
  # @return [Vips::Image] Output image
1446
1548
 
1447
- # @!method LCh2CMC(, opts = {})
1549
+ # @!method LCh2CMC(opts = {})
1448
1550
  # Transform lch to cmc.
1449
1551
  # @param [Hash] opts Set of options
1450
1552
  # @return [Vips::Image] Output image
1451
1553
 
1452
- # @!method CMC2LCh(, opts = {})
1554
+ # @!method CMC2LCh(opts = {})
1453
1555
  # Transform lch to cmc.
1454
1556
  # @param [Hash] opts Set of options
1455
1557
  # @return [Vips::Image] Output image
1456
1558
 
1457
- # @!method XYZ2Yxy(, opts = {})
1559
+ # @!method XYZ2Yxy(opts = {})
1458
1560
  # Transform xyz to yxy.
1459
1561
  # @param [Hash] opts Set of options
1460
1562
  # @return [Vips::Image] Output image
1461
1563
 
1462
- # @!method Yxy2XYZ(, opts = {})
1564
+ # @!method Yxy2XYZ(opts = {})
1463
1565
  # Transform yxy to xyz.
1464
1566
  # @param [Hash] opts Set of options
1465
1567
  # @return [Vips::Image] Output image
1466
1568
 
1467
- # @!method scRGB2XYZ(, opts = {})
1569
+ # @!method scRGB2XYZ(opts = {})
1468
1570
  # Transform scrgb to xyz.
1469
1571
  # @param [Hash] opts Set of options
1470
1572
  # @return [Vips::Image] Output image
1471
1573
 
1472
- # @!method XYZ2scRGB(, opts = {})
1574
+ # @!method XYZ2scRGB(opts = {})
1473
1575
  # Transform xyz to scrgb.
1474
1576
  # @param [Hash] opts Set of options
1475
1577
  # @return [Vips::Image] Output image
1476
1578
 
1477
- # @!method LabQ2Lab(, opts = {})
1579
+ # @!method LabQ2Lab(opts = {})
1478
1580
  # Unpack a labq image to float lab.
1479
1581
  # @param [Hash] opts Set of options
1480
1582
  # @return [Vips::Image] Output image
1481
1583
 
1482
- # @!method Lab2LabQ(, opts = {})
1584
+ # @!method Lab2LabQ(opts = {})
1483
1585
  # Transform float lab to labq coding.
1484
1586
  # @param [Hash] opts Set of options
1485
1587
  # @return [Vips::Image] Output image
1486
1588
 
1487
- # @!method LabQ2LabS(, opts = {})
1589
+ # @!method LabQ2LabS(opts = {})
1488
1590
  # Unpack a labq image to short lab.
1489
1591
  # @param [Hash] opts Set of options
1490
1592
  # @return [Vips::Image] Output image
1491
1593
 
1492
- # @!method LabS2LabQ(, opts = {})
1594
+ # @!method LabS2LabQ(opts = {})
1493
1595
  # Transform short lab to labq coding.
1494
1596
  # @param [Hash] opts Set of options
1495
1597
  # @return [Vips::Image] Output image
1496
1598
 
1497
- # @!method LabS2Lab(, opts = {})
1599
+ # @!method LabS2Lab(opts = {})
1498
1600
  # Transform signed short lab to float.
1499
1601
  # @param [Hash] opts Set of options
1500
1602
  # @return [Vips::Image] Output image
1501
1603
 
1502
- # @!method Lab2LabS(, opts = {})
1604
+ # @!method Lab2LabS(opts = {})
1503
1605
  # Transform float lab to signed short.
1504
1606
  # @param [Hash] opts Set of options
1505
1607
  # @return [Vips::Image] Output image
1506
1608
 
1507
- # @!method rad2float(, opts = {})
1609
+ # @!method rad2float(opts = {})
1508
1610
  # Unpack radiance coding to float rgb.
1509
1611
  # @param [Hash] opts Set of options
1510
1612
  # @return [Vips::Image] Output image
1511
1613
 
1512
- # @!method float2rad(, opts = {})
1614
+ # @!method float2rad(opts = {})
1513
1615
  # Transform float rgb to radiance coding.
1514
1616
  # @param [Hash] opts Set of options
1515
1617
  # @return [Vips::Image] Output image
1516
1618
 
1517
- # @!method LabQ2sRGB(, opts = {})
1619
+ # @!method LabQ2sRGB(opts = {})
1518
1620
  # Convert a labq image to srgb.
1519
1621
  # @param [Hash] opts Set of options
1520
1622
  # @return [Vips::Image] Output image
1521
1623
 
1522
- # @!method sRGB2HSV(, opts = {})
1624
+ # @!method sRGB2HSV(opts = {})
1523
1625
  # Transform srgb to hsv.
1524
1626
  # @param [Hash] opts Set of options
1525
1627
  # @return [Vips::Image] Output image
1526
1628
 
1527
- # @!method HSV2sRGB(, opts = {})
1629
+ # @!method HSV2sRGB(opts = {})
1528
1630
  # Transform hsv to srgb.
1529
1631
  # @param [Hash] opts Set of options
1530
1632
  # @return [Vips::Image] Output image
1531
1633
 
1532
- # @!method icc_import(, opts = {})
1634
+ # @!method icc_import(opts = {})
1533
1635
  # Import from device with icc profile.
1534
1636
  # @param [Hash] opts Set of options
1535
1637
  # @option opts [Vips::Intent] :intent Rendering intent
@@ -1538,7 +1640,7 @@ module Vips
1538
1640
  # @option opts [String] :input_profile Filename to load input profile from
1539
1641
  # @return [Vips::Image] Output image
1540
1642
 
1541
- # @!method icc_export(, opts = {})
1643
+ # @!method icc_export(opts = {})
1542
1644
  # Output to device with icc profile.
1543
1645
  # @param [Hash] opts Set of options
1544
1646
  # @option opts [Vips::Intent] :intent Rendering intent
@@ -1576,18 +1678,18 @@ module Vips
1576
1678
  # @param [Hash] opts Set of options
1577
1679
  # @return [Vips::Image] Output image
1578
1680
 
1579
- # @!method sRGB2scRGB(, opts = {})
1681
+ # @!method sRGB2scRGB(opts = {})
1580
1682
  # Convert an srgb image to scrgb.
1581
1683
  # @param [Hash] opts Set of options
1582
1684
  # @return [Vips::Image] Output image
1583
1685
 
1584
- # @!method scRGB2BW(, opts = {})
1686
+ # @!method scRGB2BW(opts = {})
1585
1687
  # Convert scrgb to bw.
1586
1688
  # @param [Hash] opts Set of options
1587
1689
  # @option opts [Integer] :depth Output device space depth in bits
1588
1690
  # @return [Vips::Image] Output image
1589
1691
 
1590
- # @!method scRGB2sRGB(, opts = {})
1692
+ # @!method scRGB2sRGB(opts = {})
1591
1693
  # Convert an scrgb image to srgb.
1592
1694
  # @param [Hash] opts Set of options
1593
1695
  # @option opts [Integer] :depth Output device space depth in bits
@@ -1617,7 +1719,7 @@ module Vips
1617
1719
  # @option opts [Float] :s0 New deviation
1618
1720
  # @return [Vips::Image] Output image
1619
1721
 
1620
- # @!method hist_cum(, opts = {})
1722
+ # @!method hist_cum(opts = {})
1621
1723
  # Form cumulative histogram.
1622
1724
  # @param [Hash] opts Set of options
1623
1725
  # @return [Vips::Image] Output image
@@ -1628,18 +1730,18 @@ module Vips
1628
1730
  # @param [Hash] opts Set of options
1629
1731
  # @return [Vips::Image] Output image
1630
1732
 
1631
- # @!method hist_norm(, opts = {})
1733
+ # @!method hist_norm(opts = {})
1632
1734
  # Normalise histogram.
1633
1735
  # @param [Hash] opts Set of options
1634
1736
  # @return [Vips::Image] Output image
1635
1737
 
1636
- # @!method hist_equal(, opts = {})
1738
+ # @!method hist_equal(opts = {})
1637
1739
  # Histogram equalisation.
1638
1740
  # @param [Hash] opts Set of options
1639
1741
  # @option opts [Integer] :band Equalise with this band
1640
1742
  # @return [Vips::Image] Output image
1641
1743
 
1642
- # @!method hist_plot(, opts = {})
1744
+ # @!method hist_plot(opts = {})
1643
1745
  # Plot histogram.
1644
1746
  # @param [Hash] opts Set of options
1645
1747
  # @return [Vips::Image] Output image
@@ -1649,14 +1751,15 @@ module Vips
1649
1751
  # @param width [Integer] Window width in pixels
1650
1752
  # @param height [Integer] Window height in pixels
1651
1753
  # @param [Hash] opts Set of options
1754
+ # @option opts [Integer] :max_slope Maximum slope (CLAHE)
1652
1755
  # @return [Vips::Image] Output image
1653
1756
 
1654
- # @!method hist_ismonotonic(, opts = {})
1757
+ # @!method hist_ismonotonic(opts = {})
1655
1758
  # Test for monotonicity.
1656
1759
  # @param [Hash] opts Set of options
1657
1760
  # @return [Boolean] true if in is monotonic
1658
1761
 
1659
- # @!method hist_entropy(, opts = {})
1762
+ # @!method hist_entropy(opts = {})
1660
1763
  # Estimate image entropy.
1661
1764
  # @param [Hash] opts Set of options
1662
1765
  # @return [Float] Output value
@@ -1730,7 +1833,7 @@ module Vips
1730
1833
  # @param [Hash] opts Set of options
1731
1834
  # @return [Vips::Image] Output image
1732
1835
 
1733
- # @!method sharpen(, opts = {})
1836
+ # @!method sharpen(opts = {})
1734
1837
  # Unsharp masking for print.
1735
1838
  # @param [Hash] opts Set of options
1736
1839
  # @option opts [Float] :sigma Sigma of Gaussian
@@ -1749,12 +1852,12 @@ module Vips
1749
1852
  # @option opts [Vips::Precision] :precision Convolve with this precision
1750
1853
  # @return [Vips::Image] Output image
1751
1854
 
1752
- # @!method fwfft(, opts = {})
1855
+ # @!method fwfft(opts = {})
1753
1856
  # Forward fft.
1754
1857
  # @param [Hash] opts Set of options
1755
1858
  # @return [Vips::Image] Output image
1756
1859
 
1757
- # @!method invfft(, opts = {})
1860
+ # @!method invfft(opts = {})
1758
1861
  # Inverse fft.
1759
1862
  # @param [Hash] opts Set of options
1760
1863
  # @option opts [Boolean] :real Output only the real part of the transform
@@ -1766,7 +1869,7 @@ module Vips
1766
1869
  # @param [Hash] opts Set of options
1767
1870
  # @return [Vips::Image] Output image
1768
1871
 
1769
- # @!method spectrum(, opts = {})
1872
+ # @!method spectrum(opts = {})
1770
1873
  # Make displayable power spectrum.
1771
1874
  # @param [Hash] opts Set of options
1772
1875
  # @return [Vips::Image] Output image
@@ -1798,7 +1901,7 @@ module Vips
1798
1901
  # @param [Hash] opts Set of options
1799
1902
  # @return [Float] Number of lines
1800
1903
 
1801
- # @!method labelregions(, opts = {})
1904
+ # @!method labelregions(opts = {})
1802
1905
  # Label regions in an image.
1803
1906
  # @param [Hash] opts Set of options
1804
1907
  # @option opts [Integer] :segments Output Number of discrete contigious regions
@@ -1946,7 +2049,7 @@ module Vips
1946
2049
  # @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
1947
2050
  # @return [Vips::Image] Output image
1948
2051
 
1949
- # @!method globalbalance(, opts = {})
2052
+ # @!method globalbalance(opts = {})
1950
2053
  # Global balance an image mosaic.
1951
2054
  # @param [Hash] opts Set of options
1952
2055
  # @option opts [Float] :gamma Image gamma
@@ -1,4 +1,4 @@
1
1
  module Vips
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
4
4
 
@@ -31,8 +31,7 @@ Gem::Specification.new do |spec|
31
31
  f.match(%r{^(test|spec|features)/})
32
32
  end
33
33
 
34
- # 3.0.9 has some breaking changes, stick with 3.0.7 for now
35
- spec.add_runtime_dependency "gobject-introspection", ["3.0.8"]
34
+ spec.add_runtime_dependency "gobject-introspection", ["~> 3.1"]
36
35
 
37
36
  spec.add_development_dependency "rake", ["~> 11.0"]
38
37
  spec.add_development_dependency "rspec", ["~> 3.3"]
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: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Cupitt
@@ -14,16 +14,16 @@ dependencies:
14
14
  name: gobject-introspection
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.8
19
+ version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.8
26
+ version: '3.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -119,6 +119,7 @@ extra_rdoc_files:
119
119
  - TODO
120
120
  files:
121
121
  - ".gitignore"
122
+ - ".travis.yml"
122
123
  - ".yardopts"
123
124
  - CHANGELOG.md
124
125
  - Gemfile