The GIF conspiracy
The GIF conspiracy
- Subject: The GIF conspiracy
- From: Jan Van Tol <email@hidden>
- Date: Tue, 3 Dec 2002 20:36:38 -0600
Greetings,
I've been trying to create a decent GIF image for some time here.
Every GIF I create comes out looking weird and garbled. I've searched
the archives, and several people have asked about this, but there
hasn't been a single answer! Here's the code I'm using (got it from
the archives):
//image is a valid image
NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWith
Data:[image
TIFFRepresentationUsingCompression: NSTIFFCompressionLZW factor: 15.0]];
NSData *gifData = [imageRep representationUsingType:NSGIFFileType
properties:nil];
//write to file
So what's going on? Why does no one have an answer to this? Seems
like creating a simple GIF would be a pretty common thing to do!
-Jan Van Tol
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.