|
1 | 1 | # lua-vips
|
2 | 2 |
|
3 |
| -[](https://travis-ci.org/jcupitt/lua-vips) |
| 3 | +[](https://travis-ci.org/libvips/lua-vips) |
4 | 4 |
|
5 | 5 | This is a Lua binding for the [libvips image processing
|
6 |
| -library](http://jcupitt.github.io/libvips). libvips |
| 6 | +library](http://libvips.github.io/libvips). libvips |
7 | 7 | is a [fast image processing library with low memory
|
8 | 8 | needs](https://github.com/jcupitt/lua-vips-bench). `lua-vips` uses ffi
|
9 | 9 | and needs luajit 2.0 or later.
|
10 | 10 |
|
11 | 11 | The libvips documentation includes a
|
12 | 12 | handy searchable table of [every operation in
|
13 |
| -libvips](http://jcupitt.github.io/libvips/API/current/func-list.html). This |
| 13 | +libvips](http://libvips.github.io/libvips/API/current/func-list.html). This |
14 | 14 | is a good place to check if it supports some feature you need. Read on to
|
15 | 15 | see how to call libvips operations.
|
16 | 16 |
|
17 | 17 | # Example
|
18 | 18 |
|
19 | 19 | [Install the libvips shared
|
20 |
| -library](https://jcupitt.github.io/libvips/install.html), then install this rock with: |
| 20 | +library](https://libvips.github.io/libvips/install.html), then install this rock with: |
21 | 21 |
|
22 | 22 | luarocks install lua-vips
|
23 | 23 |
|
@@ -88,7 +88,7 @@ up to date.
|
88 | 88 | # Getting more help
|
89 | 89 |
|
90 | 90 | The libvips website has a handy table of [all the libvips
|
91 |
| -operators](http://jcupitt.github.io/libvips/API/current/func-list.html). Each |
| 91 | +operators](http://libvips.github.io/libvips/API/current/func-list.html). Each |
92 | 92 | one links to the main API docs so you can see what you need to pass to it.
|
93 | 93 |
|
94 | 94 | A simple way to see the arguments for an operation is to try running it
|
@@ -176,7 +176,7 @@ local image = vips.Image.jpegload("somefile.jpg", { shrink = 4 })
|
176 | 176 | ```
|
177 | 177 |
|
178 | 178 | The [loader section in the API
|
179 |
| -docs](http://jcupitt.github.io/libvips/API/current/VipsForeignSave.html) lists |
| 179 | +docs](http://libvips.github.io/libvips/API/current/VipsForeignSave.html) lists |
180 | 180 | all loaders and their options.
|
181 | 181 |
|
182 | 182 | ### `image = vips.Image.new_from_buffer(string [, string_options, options])`
|
@@ -274,7 +274,7 @@ local noise = vips.Image.perlin(256, 256, { cell_size = 128 })
|
274 | 274 |
|
275 | 275 | See:
|
276 | 276 |
|
277 |
| -[http://jcupitt.github.io/libvips/API/current/libvips-create.html](http://jcupitt.github.io/libvips/API/current/libvips-create.html) |
| 277 | +[http://libvips.github.io/libvips/API/current/libvips-create.html](http://libvips.github.io/libvips/API/current/libvips-create.html) |
278 | 278 |
|
279 | 279 | ## Get and set image metadata
|
280 | 280 |
|
@@ -322,7 +322,7 @@ successfully removed, `false` otherwise.
|
322 | 322 | You can call any libvips operation as a member function, for example
|
323 | 323 | `hough_circle`, the circular Hough transform:
|
324 | 324 |
|
325 |
| -[http://jcupitt.github.io/libvips/API/current/libvips-arithmetic.html#vips-hough-circle](http://jcupitt.github.io/libvips/API/current/libvips-arithmetic.html#vips-hough-circle) |
| 325 | +[http://libvips.github.io/libvips/API/current/libvips-arithmetic.html#vips-hough-circle](http://libvips.github.io/libvips/API/current/libvips-arithmetic.html#vips-hough-circle) |
326 | 326 |
|
327 | 327 | Can be called from Lua like this:
|
328 | 328 |
|
@@ -360,7 +360,7 @@ max_value = image:max()
|
360 | 360 | ```
|
361 | 361 |
|
362 | 362 | To get the maximum value from an image. If you look at [the `max`
|
363 |
| -operator](http://jcupitt.github.io/libvips/API/current/libvips-arithmetic.html#vips-max), |
| 363 | +operator](http://libvips.github.io/libvips/API/current/libvips-arithmetic.html#vips-max), |
364 | 364 | it can actually return a lot more than this. You can write:
|
365 | 365 |
|
366 | 366 | ```lua
|
@@ -590,7 +590,7 @@ Run the example script with:
|
590 | 590 |
|
591 | 591 | ### Update rock
|
592 | 592 |
|
593 |
| - luarocks upload lua-vips-1.1-8.rockspec --api-key=xxxxxxxxxxxxxx |
| 593 | + luarocks upload lua-vips-1.1-9.rockspec --api-key=xxxxxxxxxxxxxx |
594 | 594 |
|
595 | 595 | ### Links
|
596 | 596 |
|
|
0 commit comments