I've made a NSImageRep that loads images using ImageMagick, in case anyone is interested.
It's very basic so far, and is actually leaking memory, but it might be a good starting point anyway.
Currently it only works through
Code: Select all
[[NSImage alloc] initWithData:...];
The files are at
http://bazaar.launchpad.net/~pelle-mort ... ImageRep.m
http://bazaar.launchpad.net/~pelle-mort ... ImageRep.h
http://bazaar.launchpad.net/~pelle-mort ... -magick.sh
The last one is the script that builds ImageMagick and puts libMagickCore.a in the products directory (you then add it to your main target together with the Obj-C files).