Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-oiio

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-oiio

A simple OpenImageIO wrapper

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 23 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc