Search code examples
pythonmanim

How to set the size of pic/video rendered by manim?


The default size of picture or video rendered by manim is 1920*1080. But I want to resize it to for example 2000 * 2000, and I don't know how to modify it.

I browsed the doc of manim, but I haven't find any useful ways.

Can you help me with it?

enter image description here


I tried to modify frame_height,frame_width,frame_size,but nothing happend. https://docs.manim.community/en/stable/reference/manim._config.utils.ManimConfig.html#manim._config.utils.ManimConfig.frame_height


Solution

  • you can use the -r, and set e.g. -r 2000,2000.

    Here I wrote a whole tutorial how to change the pixel size: https://flyingframes.readthedocs.io/en/latest/ch5.html enter image description here