ruby-vips 2.0.13 → 2.0.14
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/.rubocop.yml +10 -0
- data/.rubocop_todo.yml +730 -0
- data/.travis.yml +13 -6
- data/CHANGELOG.md +8 -0
- data/README.md +5 -8
- data/Rakefile +6 -0
- data/VERSION +1 -1
- 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/install-vips.sh +1 -1
- 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 -1335
- 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 +463 -283
- data/lib/vips/object.rb +208 -208
- data/lib/vips/operation.rb +323 -323
- 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/ruby-vips.gemspec +6 -2
- metadata +29 -6
@@ -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/ruby-vips.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.summary = "Ruby extension for the vips image processing library."
|
14
14
|
spec.description = "ruby-vips is a binding for the vips image processing library. It is extremely fast and it can process huge images without loading the whole image in memory."
|
15
|
-
spec.homepage = "http://github.com/
|
15
|
+
spec.homepage = "http://github.com/libvips/ruby-vips"
|
16
16
|
spec.licenses = ["MIT"]
|
17
17
|
|
18
18
|
spec.require_paths = ["lib"]
|
@@ -33,7 +33,11 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency "yard", ["~> 0.9.11"]
|
34
34
|
spec.add_development_dependency "redcarpet", ["~> 3.3"]
|
35
35
|
spec.add_development_dependency "github-markup", ["~> 1.4"]
|
36
|
-
spec.add_development_dependency "bundler", ["
|
36
|
+
spec.add_development_dependency "bundler", [">= 1.0", "< 3"]
|
37
37
|
|
38
|
+
# RuboCop requires Ruby >= 2.2
|
39
|
+
if Gem.ruby_version >= Gem::Version.new("2.2")
|
40
|
+
spec.add_development_dependency "rubocop", ["~> 0.64"]
|
41
|
+
end
|
38
42
|
end
|
39
43
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-vips
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Cupitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -98,16 +98,36 @@ dependencies:
|
|
98
98
|
name: bundler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '1.0'
|
104
|
+
- - "<"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '3'
|
104
107
|
type: :development
|
105
108
|
prerelease: false
|
106
109
|
version_requirements: !ruby/object:Gem::Requirement
|
107
110
|
requirements:
|
108
|
-
- - "
|
111
|
+
- - ">="
|
109
112
|
- !ruby/object:Gem::Version
|
110
113
|
version: '1.0'
|
114
|
+
- - "<"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '3'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rubocop
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0.64'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0.64'
|
111
131
|
description: ruby-vips is a binding for the vips image processing library. It is extremely
|
112
132
|
fast and it can process huge images without loading the whole image in memory.
|
113
133
|
email: jcupitt@gmail.com
|
@@ -119,6 +139,8 @@ extra_rdoc_files:
|
|
119
139
|
- TODO
|
120
140
|
files:
|
121
141
|
- ".gitignore"
|
142
|
+
- ".rubocop.yml"
|
143
|
+
- ".rubocop_todo.yml"
|
122
144
|
- ".travis.yml"
|
123
145
|
- ".yardopts"
|
124
146
|
- CHANGELOG.md
|
@@ -148,6 +170,7 @@ files:
|
|
148
170
|
- lib/vips/angle.rb
|
149
171
|
- lib/vips/angle45.rb
|
150
172
|
- lib/vips/bandformat.rb
|
173
|
+
- lib/vips/blend_mode.rb
|
151
174
|
- lib/vips/coding.rb
|
152
175
|
- lib/vips/compass_direction.rb
|
153
176
|
- lib/vips/direction.rb
|
@@ -173,7 +196,7 @@ files:
|
|
173
196
|
- lib/vips/size.rb
|
174
197
|
- lib/vips/version.rb
|
175
198
|
- ruby-vips.gemspec
|
176
|
-
homepage: http://github.com/
|
199
|
+
homepage: http://github.com/libvips/ruby-vips
|
177
200
|
licenses:
|
178
201
|
- MIT
|
179
202
|
metadata: {}
|
@@ -193,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
216
|
version: '0'
|
194
217
|
requirements: []
|
195
218
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.7.6
|
219
|
+
rubygems_version: 2.7.6.2
|
197
220
|
signing_key:
|
198
221
|
specification_version: 4
|
199
222
|
summary: Ruby extension for the vips image processing library.
|