I'm building an iOS app which requires me to allow the users to record a 15sec clip (with UIImagePickerController for example) and then convert it into an animated GIF. How could I achieve this? Is there any library/framework available for such task?

Thanks!

有帮助吗?

解决方案

I made a library called Regift for converting movies to gifs on iOS. It's available on Github. Hopefully this helps you :)

If you install it, you can then do

Regift.createGIFFromURL(videoURL, withFrameCount: frameCount, delayTime: delayTime, loopCount: loopCount)

to create a gif.

It's best to check the full documentation, as I'll be keeping that up to date more than this answer.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top