Skip to content

Instantly share code, notes, and snippets.

throw an exception

Student B. mowshon

throw an exception
View GitHub Profile
mowshon /
Last active Nov 16, 2021
Zoom-in Effect for Moviepy. This function makes the zoom effect smoother.
import moviepy.editor as mp
import math
from PIL import Image
import numpy
def zoom_in_effect(clip, zoom_ratio=0.04):
def effect(get_frame, t):
img = Image.fromarray(get_frame(t))
base_size = img.size
yay python-dev
yay blas
yay lapack
yay gcc-fortran