vips 8.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.travis.yml +47 -0
- data/.yardopts +2 -0
- data/Gemfile +4 -0
- data/README.md +64 -0
- data/Rakefile +28 -0
- data/example/annotate.rb +17 -0
- data/example/daltonize8.rb +75 -0
- data/example/example1.rb +12 -0
- data/example/example2.rb +34 -0
- data/example/example3.rb +19 -0
- data/example/example4.rb +18 -0
- data/example/example5.rb +31 -0
- data/example/inheritance_with_refcount.rb +286 -0
- data/example/thumb.rb +31 -0
- data/example/trim8.rb +41 -0
- data/example/watermark.rb +44 -0
- data/example/wobble.rb +36 -0
- data/ext/Rakefile +35 -0
- data/lib/vips.rb +597 -0
- data/lib/vips/access.rb +11 -0
- data/lib/vips/align.rb +11 -0
- data/lib/vips/angle.rb +12 -0
- data/lib/vips/angle45.rb +16 -0
- data/lib/vips/bandformat.rb +20 -0
- data/lib/vips/coding.rb +14 -0
- data/lib/vips/compass_direction.rb +17 -0
- data/lib/vips/direction.rb +11 -0
- data/lib/vips/extend.rb +17 -0
- data/lib/vips/gobject.rb +122 -0
- data/lib/vips/gvalue.rb +281 -0
- data/lib/vips/image.rb +1500 -0
- data/lib/vips/interesting.rb +14 -0
- data/lib/vips/interpolate.rb +62 -0
- data/lib/vips/interpretation.rb +28 -0
- data/lib/vips/kernel.rb +22 -0
- data/lib/vips/methods.rb +2145 -0
- data/lib/vips/object.rb +244 -0
- data/lib/vips/operation.rb +365 -0
- data/lib/vips/operationboolean.rb +14 -0
- data/lib/vips/operationcomplex.rb +12 -0
- data/lib/vips/operationcomplex2.rb +10 -0
- data/lib/vips/operationcomplexget.rb +11 -0
- data/lib/vips/operationmath.rb +18 -0
- data/lib/vips/operationmath2.rb +10 -0
- data/lib/vips/operationrelational.rb +15 -0
- data/lib/vips/operationround.rb +11 -0
- data/lib/vips/size.rb +13 -0
- data/lib/vips/version.rb +4 -0
- data/vips.gemspec +36 -0
- metadata +209 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
module Vips
|
2
|
+
|
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
|
14
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Vips
|
2
|
+
|
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
|
12
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Vips
|
2
|
+
|
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
|
18
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Vips
|
2
|
+
|
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
|
15
|
+
end
|
data/lib/vips/size.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
module Vips
|
2
|
+
|
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
|
13
|
+
end
|
data/lib/vips/version.rb
ADDED
data/vips.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
require_relative "lib/vips/version"
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = "vips"
|
6
|
+
spec.version = Vips::VERSION
|
7
|
+
spec.authors = ["John Cupitt", "Samuel Williams"]
|
8
|
+
spec.email = ["jcupitt@gmail.com", "samuel.williams@oriontransfer.co.nz"]
|
9
|
+
|
10
|
+
spec.summary = "Vips is a high-performance image manipulation library."
|
11
|
+
spec.description = "Provides pre-compiled binaries for libvips."
|
12
|
+
spec.homepage = "https://github.com/ioquatix/vips"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
|
+
f.match(%r{^(test|spec|features)/})
|
17
|
+
end
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.required_ruby_version = ">= 2.1"
|
22
|
+
|
23
|
+
spec.extensions = %w[ext/Rakefile]
|
24
|
+
|
25
|
+
spec.add_runtime_dependency "ffi", ["~> 1.9"]
|
26
|
+
|
27
|
+
spec.add_development_dependency "pry"
|
28
|
+
|
29
|
+
spec.add_development_dependency "yard", "~> 0.8"
|
30
|
+
spec.add_development_dependency "redcarpet", "~> 3.3"
|
31
|
+
spec.add_development_dependency "github-markup", "~> 1.4"
|
32
|
+
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
34
|
+
spec.add_development_dependency "rspec", "~> 3.7"
|
35
|
+
spec.add_development_dependency "rake"
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,209 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vips
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 8.6.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- John Cupitt
|
8
|
+
- Samuel Williams
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: ffi
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.9'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.9'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: pry
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: yard
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0.8'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.8'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: redcarpet
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.3'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.3'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: github-markup
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.4'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.4'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: bundler
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '1.16'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '1.16'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: rspec
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '3.7'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '3.7'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: rake
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
description: Provides pre-compiled binaries for libvips.
|
127
|
+
email:
|
128
|
+
- jcupitt@gmail.com
|
129
|
+
- samuel.williams@oriontransfer.co.nz
|
130
|
+
executables: []
|
131
|
+
extensions:
|
132
|
+
- ext/Rakefile
|
133
|
+
extra_rdoc_files: []
|
134
|
+
files:
|
135
|
+
- ".gitignore"
|
136
|
+
- ".travis.yml"
|
137
|
+
- ".yardopts"
|
138
|
+
- Gemfile
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- example/annotate.rb
|
142
|
+
- example/daltonize8.rb
|
143
|
+
- example/example1.rb
|
144
|
+
- example/example2.rb
|
145
|
+
- example/example3.rb
|
146
|
+
- example/example4.rb
|
147
|
+
- example/example5.rb
|
148
|
+
- example/inheritance_with_refcount.rb
|
149
|
+
- example/thumb.rb
|
150
|
+
- example/trim8.rb
|
151
|
+
- example/watermark.rb
|
152
|
+
- example/wobble.rb
|
153
|
+
- ext/Rakefile
|
154
|
+
- lib/vips.rb
|
155
|
+
- lib/vips/access.rb
|
156
|
+
- lib/vips/align.rb
|
157
|
+
- lib/vips/angle.rb
|
158
|
+
- lib/vips/angle45.rb
|
159
|
+
- lib/vips/bandformat.rb
|
160
|
+
- lib/vips/coding.rb
|
161
|
+
- lib/vips/compass_direction.rb
|
162
|
+
- lib/vips/direction.rb
|
163
|
+
- lib/vips/extend.rb
|
164
|
+
- lib/vips/gobject.rb
|
165
|
+
- lib/vips/gvalue.rb
|
166
|
+
- lib/vips/image.rb
|
167
|
+
- lib/vips/interesting.rb
|
168
|
+
- lib/vips/interpolate.rb
|
169
|
+
- lib/vips/interpretation.rb
|
170
|
+
- lib/vips/kernel.rb
|
171
|
+
- lib/vips/methods.rb
|
172
|
+
- lib/vips/object.rb
|
173
|
+
- lib/vips/operation.rb
|
174
|
+
- lib/vips/operationboolean.rb
|
175
|
+
- lib/vips/operationcomplex.rb
|
176
|
+
- lib/vips/operationcomplex2.rb
|
177
|
+
- lib/vips/operationcomplexget.rb
|
178
|
+
- lib/vips/operationmath.rb
|
179
|
+
- lib/vips/operationmath2.rb
|
180
|
+
- lib/vips/operationrelational.rb
|
181
|
+
- lib/vips/operationround.rb
|
182
|
+
- lib/vips/size.rb
|
183
|
+
- lib/vips/version.rb
|
184
|
+
- vips.gemspec
|
185
|
+
homepage: https://github.com/ioquatix/vips
|
186
|
+
licenses:
|
187
|
+
- MIT
|
188
|
+
metadata: {}
|
189
|
+
post_install_message:
|
190
|
+
rdoc_options: []
|
191
|
+
require_paths:
|
192
|
+
- lib
|
193
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - ">="
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '2.1'
|
198
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
requirements: []
|
204
|
+
rubyforge_project:
|
205
|
+
rubygems_version: 2.7.6
|
206
|
+
signing_key:
|
207
|
+
specification_version: 4
|
208
|
+
summary: Vips is a high-performance image manipulation library.
|
209
|
+
test_files: []
|