Skip to content

Instantly share code, notes, and snippets.

View mowshon's full-sized avatar
😍
throw an exception

Student B. mowshon

😍
throw an exception
View GitHub Profile
@mowshon
mowshon / moviepy-zoom-in-effect.py
Last active April 16, 2024 11:31
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
@mowshon
mowshon / arch-linux-scipy-dependences.sh
Created January 4, 2020 19:01
ArchLinux compile scipy
yay python-dev
yay blas
yay lapack
yay gcc-fortran