Suee97
Suee97

Reputation: 909

Can I convert .SVG animationfile to ,Json?

I'm trying to use Lottie Library in jetpack compose
For animating image, I made animating svg file.
But in https://lottiefiles.com/svg-to-lottie, the animating svg file converted to static json file which I didn't intent.
How could I convert animating svg file to animating json file?

Upvotes: 0

Views: 1546

Answers (2)

abasirwani
abasirwani

Reputation: 41

Okey, 1- first open your .svg file with illustrator. 2- then you'll need to save the file as .ai (adobe illustrator). 3- after that you can open the .ai file with adobe after effects. 4- then with lottiefiles extension you will be able to convert and save the file as json. pretty simple right? this method only works if your svg is not animated. to convert an animated svg, so far and obviously as far as I know you'll need redraw your animation in illustrator and animate it in after effects. this link will probably be of use. https://www.youtube.com/watch?v=yPha_s7W-0M

Upvotes: 1

abasirwani
abasirwani

Reputation: 41

You'll have use Adobe AE and convert your animation with lottiefiles or bodymovin extesions to .json.

Upvotes: 1

Related Questions