• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
The GIF conspiracy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 imageRepWithData:[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.

  • Prev by Date: Maximum size of an NSMutableData object?
  • Next by Date: Re: Rookie question. Where did expection raised!?
  • Previous by thread: Re: Maximum size of an NSMutableData object?
  • Next by thread: Re: The GIF conspiracy
  • Index(es):
    • Date
    • Thread