ruby-vips 0.3.6 → 0.3.7
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.
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +42 -12
- data/README.md +14 -21
- data/TODO +6 -0
- data/lib/vips/version.rb +1 -1
- data/ruby-vips.gemspec +2 -2
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,25 +1,55 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
diff-lcs (1.2.5)
|
7
|
+
faraday (0.8.9)
|
8
|
+
multipart-post (~> 1.2.0)
|
9
|
+
git (1.2.6)
|
10
|
+
github_api (0.10.1)
|
11
|
+
addressable
|
12
|
+
faraday (~> 0.8.1)
|
13
|
+
hashie (>= 1.2)
|
14
|
+
multi_json (~> 1.4)
|
15
|
+
nokogiri (~> 1.5.2)
|
16
|
+
oauth2
|
17
|
+
hashie (2.0.5)
|
18
|
+
highline (1.6.20)
|
19
|
+
jeweler (1.8.8)
|
20
|
+
builder
|
7
21
|
bundler (~> 1.0)
|
8
22
|
git (>= 1.2.5)
|
23
|
+
github_api (= 0.10.1)
|
24
|
+
highline (>= 1.6.15)
|
25
|
+
nokogiri (= 1.5.10)
|
9
26
|
rake
|
10
27
|
rdoc
|
11
|
-
json (1.8.
|
12
|
-
|
28
|
+
json (1.8.1)
|
29
|
+
jwt (0.1.11)
|
30
|
+
multi_json (>= 1.5)
|
31
|
+
multi_json (1.8.4)
|
32
|
+
multi_xml (0.5.5)
|
33
|
+
multipart-post (1.2.0)
|
34
|
+
nokogiri (1.5.10)
|
35
|
+
oauth2 (0.9.3)
|
36
|
+
faraday (>= 0.8, < 0.10)
|
37
|
+
jwt (~> 0.1.8)
|
38
|
+
multi_json (~> 1.3)
|
39
|
+
multi_xml (~> 0.5)
|
40
|
+
rack (~> 1.2)
|
41
|
+
rack (1.5.2)
|
42
|
+
rake (10.1.1)
|
13
43
|
rdoc (3.12.2)
|
14
44
|
json (~> 1.4)
|
15
|
-
rspec (2.
|
16
|
-
rspec-core (~> 2.
|
17
|
-
rspec-expectations (~> 2.
|
18
|
-
rspec-mocks (~> 2.
|
19
|
-
rspec-core (2.
|
20
|
-
rspec-expectations (2.
|
45
|
+
rspec (2.14.1)
|
46
|
+
rspec-core (~> 2.14.0)
|
47
|
+
rspec-expectations (~> 2.14.0)
|
48
|
+
rspec-mocks (~> 2.14.0)
|
49
|
+
rspec-core (2.14.7)
|
50
|
+
rspec-expectations (2.14.5)
|
21
51
|
diff-lcs (>= 1.1.3, < 2.0)
|
22
|
-
rspec-mocks (2.
|
52
|
+
rspec-mocks (2.14.5)
|
23
53
|
|
24
54
|
PLATFORMS
|
25
55
|
ruby
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[](http://travis-ci.org/jcupitt/ruby-vips)
|
4
4
|
|
5
5
|
ruby-vips is a ruby extension for [vips](http://www.vips.ecs.soton.ac.uk).
|
6
|
-
It is fast and it can
|
6
|
+
It is fast and it can work without needing the
|
7
7
|
entire image to be loaded into memory. For example, the benchmark at
|
8
8
|
[vips-benchmarks](https://github.com/stanislaw/vips-benchmarks) loads a large
|
9
9
|
image, crops, shrinks, sharpens and saves again:
|
@@ -47,37 +47,30 @@ latest libvips you can.
|
|
47
47
|
* libvips 7.24 and later (it will work with earlier libvips, but some
|
48
48
|
features may not be functional)
|
49
49
|
|
50
|
-
## Installation
|
50
|
+
## Installation prerequisites
|
51
51
|
|
52
|
-
### Ubuntu
|
52
|
+
### Ubuntu
|
53
53
|
|
54
54
|
```bash
|
55
55
|
$ apt-get install libvips-dev
|
56
56
|
```
|
57
57
|
|
58
|
-
### OS X
|
58
|
+
### OS X
|
59
59
|
|
60
|
-
|
61
|
-
$ brew tap homebrew/science
|
62
|
-
$ brew install vips
|
63
|
-
```
|
64
|
-
|
65
|
-
This will give you a very bare-bones vips, missing things like imagemagick
|
66
|
-
loading, openslide support, FFTs, and so on. To get a list of all the optional
|
67
|
-
dependencies, try:
|
68
|
-
|
69
|
-
```bash
|
70
|
-
$ brew info vips
|
71
|
-
```
|
72
|
-
|
73
|
-
For a full-fat version, try:
|
60
|
+
Install [homebrew](http://mxcl.github.com/homebrew) and enter:
|
74
61
|
|
75
62
|
```bash
|
63
|
+
$ brew tap homebrew/science
|
76
64
|
$ brew install vips --with-cfitsio --with-fftw --with-imagemagick \
|
77
65
|
--with-libexif --with-liboil --with-libtiff --with-little-cms \
|
78
66
|
--with-openexr --with-openslide --with-pango
|
79
67
|
```
|
80
68
|
|
69
|
+
libvips has a lot of optional dependencies. You
|
70
|
+
may not need all of them. See [the notes
|
71
|
+
here](http://www.vips.ecs.soton.ac.uk/index.php?title=Build_on_OS_X) for
|
72
|
+
more information.
|
73
|
+
|
81
74
|
If you want to build things outside homebrew which depend on vips,
|
82
75
|
such as ruby-vips, your pkg-config will need to be working. You
|
83
76
|
need to point pkg-config at the homebrew area, and, additionally, at
|
@@ -93,14 +86,14 @@ To verify that your vips install is correct and working, try:
|
|
93
86
|
|
94
87
|
```bash
|
95
88
|
$ vips --version
|
96
|
-
vips-7.
|
89
|
+
vips-7.36.4-Tue Nov 19 12:22:47 GMT 2013
|
97
90
|
```
|
98
91
|
|
99
|
-
To
|
92
|
+
To verify that your pkg-config is working correctly with vips, try:
|
100
93
|
|
101
94
|
```bash
|
102
95
|
$ pkg-config vips --libs
|
103
|
-
-L/usr/local/Cellar/vips/7.
|
96
|
+
-L/usr/local/Cellar/vips/7.36.4/lib ... a lot of stuff
|
104
97
|
```
|
105
98
|
|
106
99
|
TODO: Describe & test with macports.
|
data/TODO
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
|
2
|
+
- support vips_flatten(), see
|
3
|
+
|
4
|
+
https://github.com/jcupitt/ruby-vips/issues/45
|
5
|
+
|
6
|
+
|
1
7
|
btw, there's a method called to_memory in JPEGWriter and PNGWriter, that works
|
2
8
|
cool to retrieve the VIPS::Image as a memory buffer, will be cool if this
|
3
9
|
method is moved up to Writer and then it handles the correct to_memory method
|
data/lib/vips/version.rb
CHANGED
data/ruby-vips.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ruby-vips"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Timothy Elliott", "John Cupitt"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2014-02-04"
|
13
13
|
s.description = "Ruby extension for the vips image processing library."
|
14
14
|
s.email = "jcupitt@gmail.com"
|
15
15
|
s.extensions = ["ext/extconf.rb"]
|
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: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdoc
|
@@ -153,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
segments:
|
155
155
|
- 0
|
156
|
-
hash:
|
156
|
+
hash: 5021383321152209
|
157
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
158
|
none: false
|
159
159
|
requirements:
|