Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TWTweetComposeViewController - animated GIF

Is it possible to upload an animated GIF with TWTweetComposeViewController?

I gave it a try with UIImage, and it only uploads the first frame. This makes sense, since UIImage doesn't support animated GIFs.

Is there a way to do this? Maybe a way to pass an NSData?

(My app is MonoTouch C#, but Objective-C answers work just as well)

like image 474
jonathanpeppers Avatar asked Jan 23 '26 11:01

jonathanpeppers


2 Answers

Follow This Link http://blog.stijnspijker.nl/2009/07/animated-and-transparent-gifs-for-iphone-made-easy/ It has the library to insert GIF images into UIImageView

like image 133
pavan309 Avatar answered Jan 26 '26 03:01

pavan309


You are correct - Twitter's official API documentation does not allow animated gif - only png, jpeg and one frame of gif is allowed

Here is their api doc page

I also tried the example for TWrequest post using multipart image data set to the raw Gif file and twitter sent back 400 / 403 error message

like image 21
AztecWarrior_25 Avatar answered Jan 26 '26 02:01

AztecWarrior_25