Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Chron's avatar
Level 6

Is there a way to convert SVG with css animation to GIF?

I have an SVG with a css animation embedded inside the file, is there a way to convert it to gif?

0 likes
4 replies
Chron's avatar
Level 6

I'm getting an error of "Cannot read that as a ZipFile" when uploading the html file

Chron's avatar
Level 6

@bobbybouwmann

I want to ask something. Is it better to have an svg that has a css animation with a size of ~8kb, or an animated gif with a size of 100-400kb?

bobbybouwmann's avatar

It depends on what you want to do with the SVG. Do you want to show it on the homepage or on a page where it always loads or is it something you only show in certain parts of your application? If you use it often I would probably use the gif because they are cached by the browser.

Please or to participate in this conversation.