File tree 1 file changed +20
-3
lines changed 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 1
- ## ruby-vips : A fast image processing extension for Ruby.
1
+ # ruby-vips : A fast image processing extension for Ruby.
2
2
3
3
note: this fork aims to track the latest stable vips. There are no plans to
4
4
add more features, just to keep it working.
@@ -60,7 +60,7 @@ gem 'ruby-vips'
60
60
ruby-vips has [ rdoc documentation] ( http://rubyvips.holymonkey.com ) . Also
61
61
see [ Wiki page] ( https://github.com/jcupitt/ruby-vips/wiki )
62
62
63
- ## Example.
63
+ ## Examples
64
64
65
65
``` ruby
66
66
require ' rubygems'
@@ -96,7 +96,7 @@ Image.jpeg('mypic.jpg', :shrink_factor => 4).shrink(2).png('out.png')
96
96
Image .new (' mypic.jpg' ).shrink(2 ).write(' out.png' )
97
97
```
98
98
99
- ## Longer example
99
+ ### Longer example
100
100
101
101
``` ruby
102
102
@@ -258,6 +258,23 @@ ARGV.each do |filename|
258
258
end
259
259
```
260
260
261
+ ## Gotchas
262
+
263
+ ### Contain memuse
264
+ ruby-vips only finalises vips images on GC. In other words:
265
+
266
+ a = Image.new(filename)
267
+ a = nil
268
+
269
+ will not release the resources associated with the image, you have to
270
+ either request a GC explicitly, or wait for Ruby to GC for you. This can
271
+ be a problem if you're processing many images.
272
+
273
+ ruby-vips uses a simple mark system to link images together. Instead, we
274
+ should rely on vips8 to link images for us, then dropping
275
+
276
+ ... finish
277
+
261
278
## Why use ruby-vips?
262
279
263
280
- It supports over 250 low-level image and color manipulation operations.
You can’t perform that action at this time.
0 commit comments