vips 8.6.3.2 → 8.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +27 -22
  3. data/CHANGELOG.md +273 -0
  4. data/example/annotate.rb +2 -2
  5. data/example/daltonize8.rb +26 -28
  6. data/example/example1.rb +1 -2
  7. data/example/example2.rb +6 -6
  8. data/example/example3.rb +5 -5
  9. data/example/example4.rb +6 -6
  10. data/example/example5.rb +6 -7
  11. data/example/inheritance_with_refcount.rb +201 -218
  12. data/example/thumb.rb +10 -12
  13. data/example/trim8.rb +6 -6
  14. data/example/watermark.rb +14 -35
  15. data/example/wobble.rb +24 -24
  16. data/lib/vips.rb +335 -312
  17. data/lib/vips/access.rb +9 -9
  18. data/lib/vips/align.rb +7 -8
  19. data/lib/vips/angle.rb +8 -9
  20. data/lib/vips/angle45.rb +12 -13
  21. data/lib/vips/bandformat.rb +16 -18
  22. data/lib/vips/blend_mode.rb +32 -0
  23. data/lib/vips/coding.rb +11 -12
  24. data/lib/vips/compass_direction.rb +13 -14
  25. data/lib/vips/direction.rb +7 -8
  26. data/lib/vips/extend.rb +13 -14
  27. data/lib/vips/gobject.rb +92 -96
  28. data/lib/vips/gvalue.rb +231 -237
  29. data/lib/vips/image.rb +1329 -1330
  30. data/lib/vips/interesting.rb +10 -11
  31. data/lib/vips/interpolate.rb +49 -54
  32. data/lib/vips/interpretation.rb +25 -26
  33. data/lib/vips/kernel.rb +18 -19
  34. data/lib/vips/methods.rb +2319 -2141
  35. data/lib/vips/object.rb +204 -213
  36. data/lib/vips/operation.rb +317 -323
  37. data/lib/vips/operationboolean.rb +10 -11
  38. data/lib/vips/operationcomplex.rb +8 -9
  39. data/lib/vips/operationcomplex2.rb +6 -7
  40. data/lib/vips/operationcomplexget.rb +7 -8
  41. data/lib/vips/operationmath.rb +14 -15
  42. data/lib/vips/operationmath2.rb +6 -7
  43. data/lib/vips/operationrelational.rb +11 -12
  44. data/lib/vips/operationround.rb +7 -8
  45. data/lib/vips/size.rb +9 -10
  46. data/lib/vips/version.rb +1 -1
  47. data/vips.gemspec +1 -1
  48. metadata +9 -8
@@ -1,14 +1,13 @@
1
1
  module Vips
2
+ # The type of boolean operation to perform on an image. See
3
+ # {Image#boolean}.
4
+ #
5
+ # * ':and' bitwise and
6
+ # * ':or' bitwise or
7
+ # * ':eor' bitwise eor
8
+ # * ':lshift' shift left n bits
9
+ # * ':rshift' shift right n bits
2
10
 
3
- # The type of boolean operation to perform on an image. See
4
- # {Image#boolean}.
5
- #
6
- # * ':and' bitwise and
7
- # * ':or' bitwise or
8
- # * ':eor' bitwise eor
9
- # * ':lshift' shift left n bits
10
- # * ':rshift' shift right n bits
11
-
12
- class OperationBoolean < Symbol
13
- end
11
+ class OperationBoolean < Symbol
12
+ end
14
13
  end
@@ -1,12 +1,11 @@
1
1
  module Vips
2
+ # The type of complex operation to perform on an image. See
3
+ # {Image#complex}.
4
+ #
5
+ # * ':polar' to polar coordinates
6
+ # * ':rect' to rectangular coordinates
7
+ # * ':conj' complex conjugate
2
8
 
3
- # The type of complex operation to perform on an image. See
4
- # {Image#complex}.
5
- #
6
- # * ':polar' to polar coordinates
7
- # * ':rect' to rectangular coordinates
8
- # * ':conj' complex conjugate
9
-
10
- class OperationComplex < Symbol
11
- end
9
+ class OperationComplex < Symbol
10
+ end
12
11
  end
@@ -1,10 +1,9 @@
1
1
  module Vips
2
+ # The type of binary complex operation to perform on an image. See
3
+ # {Image#complex2}.
4
+ #
5
+ # * ':cross_phase' cross phase
2
6
 
3
- # The type of binary complex operation to perform on an image. See
4
- # {Image#complex2}.
5
- #
6
- # * ':cross_phase' cross phase
7
-
8
- class OperationComplex2 < Symbol
9
- end
7
+ class OperationComplex2 < Symbol
8
+ end
10
9
  end
@@ -1,11 +1,10 @@
1
1
  module Vips
2
+ # The type of complex projection operation to perform on an image. See
3
+ # {Image#complexget}.
4
+ #
5
+ # * ':real' get real part
6
+ # * ':imag' get imaginary part
2
7
 
3
- # The type of complex projection operation to perform on an image. See
4
- # {Image#complexget}.
5
- #
6
- # * ':real' get real part
7
- # * ':imag' get imaginary part
8
-
9
- class OperationComplexget < Symbol
10
- end
8
+ class OperationComplexget < Symbol
9
+ end
11
10
  end
@@ -1,18 +1,17 @@
1
1
  module Vips
2
+ # The math operation to perform on an image. See {Image#math}.
3
+ #
4
+ # * ':sin' sin(), angles in degrees
5
+ # * ':cos' cos(), angles in degrees
6
+ # * ':tan' tan(), angles in degrees
7
+ # * ':asin' asin(), angles in degrees
8
+ # * ':acos' acos(), angles in degrees
9
+ # * ':atan' atan(), angles in degrees
10
+ # * ':log' log base e
11
+ # * ':log10' log base 10
12
+ # * ':exp' e to the something
13
+ # * ':exp10' 10 to the something
2
14
 
3
- # The math operation to perform on an image. See {Image#math}.
4
- #
5
- # * ':sin' sin(), angles in degrees
6
- # * ':cos' cos(), angles in degrees
7
- # * ':tan' tan(), angles in degrees
8
- # * ':asin' asin(), angles in degrees
9
- # * ':acos' acos(), angles in degrees
10
- # * ':atan' atan(), angles in degrees
11
- # * ':log' log base e
12
- # * ':log10' log base 10
13
- # * ':exp' e to the something
14
- # * ':exp10' 10 to the something
15
-
16
- class OperationMath < Symbol
17
- end
15
+ class OperationMath < Symbol
16
+ end
18
17
  end
@@ -1,10 +1,9 @@
1
1
  module Vips
2
+ # The binary math operation to perform on an image. See {Image#math2}.
3
+ #
4
+ # * ':pow' pow()
5
+ # * ':wop' pow(), but with the arguments reversed
2
6
 
3
- # The binary math operation to perform on an image. See {Image#math2}.
4
- #
5
- # * ':pow' pow()
6
- # * ':wop' pow(), but with the arguments reversed
7
-
8
- class OperationMath2 < Symbol
9
- end
7
+ class OperationMath2 < Symbol
8
+ end
10
9
  end
@@ -1,15 +1,14 @@
1
1
  module Vips
2
+ # The type of relational operation to perform on an image. See
3
+ # {Image#relational}.
4
+ #
5
+ # * ':more' more than
6
+ # * ':less' less than
7
+ # * ':moreeq' more than or equal to
8
+ # * ':lesseq' less than or equal to
9
+ # * ':equal' equal to
10
+ # * ':noteq' not equal to
2
11
 
3
- # The type of relational operation to perform on an image. See
4
- # {Image#relational}.
5
- #
6
- # * ':more' more than
7
- # * ':less' less than
8
- # * ':moreeq' more than or equal to
9
- # * ':lesseq' less than or equal to
10
- # * ':equal' equal to
11
- # * ':noteq' not equal to
12
-
13
- class OperationRelational < Symbol
14
- end
12
+ class OperationRelational < Symbol
13
+ end
15
14
  end
@@ -1,11 +1,10 @@
1
1
  module Vips
2
+ # The type of rounding to perform on an image. See {Image#round}.
3
+ #
4
+ # * ':ceil' round up
5
+ # * ':floor' round down
6
+ # * ':rint' round to nearest integer
2
7
 
3
- # The type of rounding to perform on an image. See {Image#round}.
4
- #
5
- # * ':ceil' round up
6
- # * ':floor' round down
7
- # * ':rint' round to nearest integer
8
-
9
- class OperationRound < Symbol
10
- end
8
+ class OperationRound < Symbol
9
+ end
11
10
  end
data/lib/vips/size.rb CHANGED
@@ -1,13 +1,12 @@
1
1
  module Vips
2
+ # Controls whether an operation should upsize, downsize, or both up and
3
+ # downsize.
4
+ #
5
+ # * `:both` size both up and down
6
+ # * `:up` only upsize
7
+ # * `:down` only downsize
8
+ # * `:force` change aspect ratio
2
9
 
3
- # Controls whether an operation should upsize, downsize, or both up and
4
- # downsize.
5
- #
6
- # * `:both` size both up and down
7
- # * `:up` only upsize
8
- # * `:down` only downsize
9
- # * `:force` change aspect ratio
10
-
11
- class Size < Symbol
12
- end
10
+ class Size < Symbol
11
+ end
13
12
  end
data/lib/vips/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Vips
3
- VERSION = "8.6.3.2"
3
+ VERSION = "8.8.2"
4
4
  end
data/vips.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency "redcarpet", "~> 3.3"
31
31
  spec.add_development_dependency "github-markup", "~> 1.4"
32
32
 
33
- spec.add_development_dependency "bundler", "~> 1.16"
33
+ spec.add_development_dependency "bundler"
34
34
  spec.add_development_dependency "rspec", "~> 3.7"
35
35
  spec.add_development_dependency "rake"
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vips
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.6.3.2
4
+ version: 8.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Cupitt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-10-23 00:00:00.000000000 Z
12
+ date: 2019-09-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -85,16 +85,16 @@ dependencies:
85
85
  name: bundler
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - "~>"
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: '1.16'
90
+ version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: '1.16'
97
+ version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rspec
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -135,6 +135,7 @@ files:
135
135
  - ".gitignore"
136
136
  - ".travis.yml"
137
137
  - ".yardopts"
138
+ - CHANGELOG.md
138
139
  - Gemfile
139
140
  - README.md
140
141
  - Rakefile
@@ -157,6 +158,7 @@ files:
157
158
  - lib/vips/angle.rb
158
159
  - lib/vips/angle45.rb
159
160
  - lib/vips/bandformat.rb
161
+ - lib/vips/blend_mode.rb
160
162
  - lib/vips/coding.rb
161
163
  - lib/vips/compass_direction.rb
162
164
  - lib/vips/direction.rb
@@ -201,8 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
203
  - !ruby/object:Gem::Version
202
204
  version: '0'
203
205
  requirements: []
204
- rubyforge_project:
205
- rubygems_version: 2.7.6
206
+ rubygems_version: 3.0.3
206
207
  signing_key:
207
208
  specification_version: 4
208
209
  summary: Vips is a high-performance image manipulation library.