vips 8.7.0.1 → 8.8.0.1
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 +4 -4
- data/.travis.yml +25 -22
- data/CHANGELOG.md +266 -0
- data/example/annotate.rb +2 -2
- data/example/daltonize8.rb +14 -14
- data/example/example2.rb +6 -6
- data/example/example3.rb +5 -5
- data/example/example4.rb +4 -4
- data/example/example5.rb +2 -2
- data/example/inheritance_with_refcount.rb +207 -207
- data/example/thumb.rb +10 -10
- data/example/trim8.rb +2 -2
- data/example/watermark.rb +14 -35
- data/example/wobble.rb +24 -24
- data/lib/vips.rb +335 -306
- data/lib/vips/access.rb +9 -9
- data/lib/vips/align.rb +7 -7
- data/lib/vips/angle.rb +8 -8
- data/lib/vips/angle45.rb +12 -12
- data/lib/vips/bandformat.rb +16 -16
- data/lib/vips/blend_mode.rb +34 -0
- data/lib/vips/coding.rb +11 -11
- data/lib/vips/compass_direction.rb +13 -13
- data/lib/vips/direction.rb +7 -7
- data/lib/vips/extend.rb +13 -13
- data/lib/vips/gobject.rb +94 -94
- data/lib/vips/gvalue.rb +232 -232
- data/lib/vips/image.rb +1329 -1327
- data/lib/vips/interesting.rb +10 -10
- data/lib/vips/interpolate.rb +51 -51
- data/lib/vips/interpretation.rb +25 -25
- data/lib/vips/kernel.rb +18 -18
- data/lib/vips/methods.rb +2226 -2139
- data/lib/vips/object.rb +208 -208
- data/lib/vips/operation.rb +323 -321
- data/lib/vips/operationboolean.rb +10 -10
- data/lib/vips/operationcomplex.rb +8 -8
- data/lib/vips/operationcomplex2.rb +6 -6
- data/lib/vips/operationcomplexget.rb +7 -7
- data/lib/vips/operationmath.rb +14 -14
- data/lib/vips/operationmath2.rb +6 -6
- data/lib/vips/operationrelational.rb +11 -11
- data/lib/vips/operationround.rb +7 -7
- data/lib/vips/size.rb +9 -9
- data/lib/vips/version.rb +1 -1
- data/vips.gemspec +1 -1
- metadata +9 -8
@@ -1,14 +1,14 @@
|
|
1
1
|
module Vips
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
11
|
|
12
|
-
|
13
|
-
|
12
|
+
class OperationBoolean < Symbol
|
13
|
+
end
|
14
14
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Vips
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
9
|
|
10
|
-
|
11
|
-
|
10
|
+
class OperationComplex < Symbol
|
11
|
+
end
|
12
12
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Vips
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
# The type of binary complex operation to perform on an image. See
|
4
|
+
# {Image#complex2}.
|
5
|
+
#
|
6
|
+
# * ':cross_phase' cross phase
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
class OperationComplex2 < Symbol
|
9
|
+
end
|
10
10
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module Vips
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
8
|
|
9
|
-
|
10
|
-
|
9
|
+
class OperationComplexget < Symbol
|
10
|
+
end
|
11
11
|
end
|
data/lib/vips/operationmath.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
module Vips
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
15
|
|
16
|
-
|
17
|
-
|
16
|
+
class OperationMath < Symbol
|
17
|
+
end
|
18
18
|
end
|
data/lib/vips/operationmath2.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
module Vips
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
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
7
|
|
8
|
-
|
9
|
-
|
8
|
+
class OperationMath2 < Symbol
|
9
|
+
end
|
10
10
|
end
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module Vips
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
12
|
|
13
|
-
|
14
|
-
|
13
|
+
class OperationRelational < Symbol
|
14
|
+
end
|
15
15
|
end
|
data/lib/vips/operationround.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
module Vips
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
8
|
|
9
|
-
|
10
|
-
|
9
|
+
class OperationRound < Symbol
|
10
|
+
end
|
11
11
|
end
|
data/lib/vips/size.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
module Vips
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
10
|
|
11
|
-
|
12
|
-
|
11
|
+
class Size < Symbol
|
12
|
+
end
|
13
13
|
end
|
data/lib/vips/version.rb
CHANGED
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"
|
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.
|
4
|
+
version: 8.8.0.1
|
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:
|
12
|
+
date: 2019-06-10 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: '
|
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: '
|
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
|
-
|
205
|
-
rubygems_version: 2.7.7
|
206
|
+
rubygems_version: 3.0.2
|
206
207
|
signing_key:
|
207
208
|
specification_version: 4
|
208
209
|
summary: Vips is a high-performance image manipulation library.
|