Skip to content

Default config for manim project switches pixel_height with pixel_width #4174

Closed
@DominQu

Description

@DominQu

Description of bug / unexpected behavior

When following the quickstart guide, I created a manim project with the command: manim init project my-project --default. This created a manim.cfg file with the following contents:

[CLI]
frame_rate = 30
pixel_height = 854
pixel_width = 480
background_color = BLACK
background_opacity = 1
scene_names = Default

The values of pixel_height and pixel_width are switched. This leads to animations being zoomed in and wrong frame_width. When I set pixel_width=854 and pixel_height=480 everything goes back to normal.

Expected behavior

Default manim.cfg file contains proper resolution, that is:

[CLI]
frame_rate = 30
pixel_height = 480
pixel_width = 854
background_color = BLACK
background_opacity = 1
scene_names = Default

How to reproduce the issue

Code for reproducing the problem
manim init project my-project --default

Additionally, you can add a line: print(config.frame_width) to main.py in my-project and verify that the value of config.frame_width != 14.2(3).

Additional media files

Images/GIFs

Logs

Terminal output
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR

System specifications

System Details
  • OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): macOS 15.3
  • RAM:
  • Python version (python/py/python3 --version): 3.9
  • Installed modules (provide output from pip list):
manim==0.19.0
LaTeX details
  • LaTeX distribution (e.g. TeX Live 2020):
  • Installed LaTeX packages:

Additional comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions