Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

videovillage/oiiococoa

Repository files navigation

oiiococoa

Version License Platform (pronunciation guide)

Easily use some OpenImageIO magic in your Cocoa apps.

Features

  • Read image files into NSImage via OpenImageIO.
  • Supported file formats:
    • TIFF
    • JPEG/JFIF
    • OpenEXR
    • PNG
    • HDR/RGBE
    • Targa
    • JPEG-2000
    • DPX
    • Cineon
    • FITS
    • BMP
    • ICO
    • RMan Zfile
    • Softimage PIC
    • DDS
    • SGI
    • Maya IFF
    • PNM/PPM/PGM/PBM
    • Field3d
    • WebP
    • Photoshop PSD
    • Wavefront RLA

Installation

oiiococoa is available through CocoaPods, to install it simply add the following line to your Podfile:

pod 'oiiococoa', :head

Usage

It's pretty simple.

// Get the URL to an image file.
NSURL *file = [[NSBundle mainBundle] URLForResource:@"dlad_1920x1080" withExtension:@"dpx"];

// Load it up.
NSImage *image = [NSImage oiio_initWithContentsOfURL:file];

Authors

Wil Gieseler (wilg)

Greg Cotten (gregcotten)

License

oiiococoa is available under the MIT license.

License details and the licenses for dependencies are included in LICENSE.md.