galatolofederico / manim-presentation

Tool for live presentations using manim
GNU General Public License v3.0
162 stars 18 forks source link

Is there anyway to control the manim_presentation window size? #8

Closed emonhossainraihan closed 2 years ago

emonhossainraihan commented 3 years ago

Description

manim_presentation works nicely with small size (-ql).

Screenshot from 2021-06-08 20-14-50

But soon, the rendering creates a problem with larger size (-qh) and (-qk). Because some content is not showing for the -qk file due to large size. This also happens with -qh for the bottom area.

Screenshot from 2021-06-08 20-11-41

It will be greater if we have some controlling/resizing system. I have found how to adjust resolution,

import cv2

cap = cv2.VideoCapture(0)

def make_1080p():
    cap.set(3, 1920)
    cap.set(4, 1080)

def make_720p():
    cap.set(3, 1280)
    cap.set(4, 720)

But couldn't manage where to set cap.set(*,*) inside present.py.

Expecting feature

galatolofederico commented 3 years ago

Thanks for the issue! i will be back on this problem. I guess that i simple downscale/upscale with opencv should do the trick