Download ESSImageCategory

ESSImageCategory - NSImage and CIImage additions

This will make it possible for you not only to get a TIFFRepresentation, but also JPEGRepresentation, JPEG2000Representation, PNGRepresentation, GIFRepresentation, BMPRepresentation, as well as convert CIImages to NSImages and vice versa.

JPEGRepresentation
- (NSData *)JPEGRepresentation;
Returns an NSData object containing the jpeg representation of the image.

JPEG2000Representation
- (NSData *)JPEG2000Representation;
Returns an NSData object containing the jpeg2000 representation of the image.

PNGRepresentation
- (NSData *)PNGRepresentation;
Returns an NSData object containing the png representation of the image.

GIFRepresentation
- (NSData *)GIFRepresentation;
Returns an NSData object containing the gif representation of the image.

BMPRepresentation
- (NSData *)BMPRepresentation;
Returns an NSData object containing the bmp representation of the image.

CIImage
- (CIImage *)CIImage;
Returns an CIImage object, converted from the NSImage at hand. Only availabe for NSImage. QuartzCore.framework has to be in your project for this to work.

NSImage
- (NSImage *)NSImage;
Returns an NSImage object, converted from the CIImage at hand. Only available for CIImage. QuartzCore.framework has to be in your project for this to work.