문제

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