Easily use some OpenImageIO magic in your Cocoa apps.
- 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
oiiococoa is available through CocoaPods, to install it simply add the following line to your Podfile:
pod 'oiiococoa', :head
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];
Wil Gieseler (wilg)
Greg Cotten (gregcotten)
oiiococoa is available under the MIT license.
License details and the licenses for dependencies are included in LICENSE.md.