https://github.com/euank/node-oiio
Node wrapper for OpenImageIO
https://github.com/euank/node-oiio
Last synced: 9 months ago
JSON representation
Node wrapper for OpenImageIO
- Host: GitHub
- URL: https://github.com/euank/node-oiio
- Owner: euank
- License: bsd-2-clause
- Created: 2013-11-19T00:03:46.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-07-24T06:22:15.000Z (almost 9 years ago)
- Last Synced: 2025-05-12T19:13:33.004Z (about 1 year ago)
- Language: JavaScript
- Size: 722 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-oiio
=========
Node wrapper for OpenImageIO
This was created as part of an assignment for a computer graphics course.
Goal
----
This wrapper aims to allow reading and writing a wide variety
of image formats via OpenImageIO.
Limitations
-----------
No attempts are made to retain all data for floating point
image formats. Everything is assumed to fit into UINT8 per
channel per pixel.
Usage
-----
```
var Image = require("node-oiio");
/* Pixel is likely not needed to be included.
It's what image.getPixel returns, which
is how you'll more likely work with it */
var Pixel = require("node-oiio/pixel");
var img = new Image('lena.png');
var smallImg = img.scale(50, 50);
smallImg.write('smalllena.png');
```
Installing
---------
_After_ you get libOpenImageIO you can simply `npm install node-oiio`
This library depends on libOpenImageIO being available. On
Gentoo `emerge media-libs/openimageio` and node-gyp being
available should be sufficient.
If anyone wants to alter it so that it downloads and locally compiles OIIO to link against,
that would probably be better.