question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reactivation of the gif export

See original GitHub issue

There are still the optional arguments: "-i", "--save_as_gif" for saving scences into gif. This feature was added to 3b1b’s repo here https://github.com/3b1b/manim/commit/c42ae8a55bb2f1ef8259a719f17eaf519c46f3f8 and removed here https://github.com/3b1b/manim/commit/61bb4944fad2ee889145bbf8a3253fb07c71bf7d where Grant wrote:

It seems strange to me that the “-c copy” line breaks things when you’re trying to make a gif, is there a more natural way to address whatever the underlying issue is here? In a perfect world, we should be able to make things so that if you set “movie_file_extension” in the SceneFileWriter to “.gif”, it figures out the settings it needs and renders the gif. Having a bunch of extra attributes for gifs strikes me as redundant.

So my idea would be to add to manim/scene/scene_file_writer.py something like

if self.save_as_gif:
            os.system("ffmpeg -i PATH_TO_VIDEO/input.mp4  output.gif")

This way, the video get’s first rendered to mp4 and then to gif, but I think that’s the most forward option.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
yoshiaskcommented, May 31, 2020

Sounds good to me.

I also want to point out that having a flag that changes the file type of the output would be useful for add-ons. For example, my PowerPoint add-on adds the --save_as_pptx flag, which could be removed in favor of adding .pptx as a valid output format. E.g. `-c [ mp4 | mov | gif | pptx | … ]

0reactions
Aathish04commented, Jun 7, 2020

@leotrs Yeah, I just made one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Optimization options for Images and Animated GIFs
Use this topic to learn the various options for exporting images and animated GIF.
Read more >
Giphy for Slack
The Giphy app lets you search a library of animated GIFs and send them in Slack. Once Giphy is installed to your workspace,...
Read more >
What Is a GIF, and How Do You Use Them?
A GIF --- which is short for Graphics Interchange Format --- is an image file. GIFs, unlike other image formats, are frequently animated....
Read more >
16 Great Examples of Animated GIFs in Emails - Stripo
In this article, we have provided some of the best email gif animation examples. Examples of animated GIFs in emails. Here's a compilation...
Read more >
GIF Export | Figma Community
Ever needed to export a gif that you added to Figma? Ever wanted to export a frame with a gif in it? Here's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found