Animated GIF problem in update_with_media


#1

In software which I’m developing there was Twitter image upload support already and it could record Animated GIFs and now Twitter added support for Animated GIF but when I use update_with_media request with Animated GIF then result becoming still GIF image and it is not animated: https://twitter.com/Jaex123/status/485363480103759872

I also tried uploading another Animated GIF to another image host, using same recording and multipart uploading methods and it was working fine in this host so i believe there is problem in Twitter API or I’m doing something wrong?

Source code to update_with_media function: https://github.com/ShareX/ShareX/blob/d65b7fb1505a02f20787409fb8faa03023c944c1/UploadersLib/ImageUploaders/Twitter.cs#L99


#2

Seems to work fine now.

Example: https://twitter.com/andersborgme/status/489893660759429120


#3

Animated GIFs are actually converted to real videos (MPEG4). Interesting.

Maybe that’s why they don’t show up in TweetDeck.


#4

I’m only able to post single frame gifs. If I try posting animated gifs, twitter gives me an error.


#5

Hi Josh, what kind of error are you getting, and which client are you using? animated gifs should be supported in Twitter for Android, iOS, and on the website.


#6

I figured what is wrong now. I was using application extension header block (http://i.imgur.com/nEBtHpP.png) end of GIF but it must be after screen descriptor header block for it to work in Twitter. So problem was to do with GIF header.


#7

Great news, thanks for updating us with the fix you found!