Skip to content

Instantly share code, notes, and snippets.

@AlphaAtlas
Last active November 16, 2019 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlphaAtlas/ff15d799d367cee18b5e8347506514b8 to your computer and use it in GitHub Desktop.
Save AlphaAtlas/ff15d799d367cee18b5e8347506514b8 to your computer and use it in GitHub Desktop.
import mvsfunc as mvs
import vapoursynth as vs
from vapoursynth as core
import mvsfunc as mvf
from glob import glob
smallimagenames = glob.glob("some path to glob")
bigimagenames = glob.glob("some other path to glob")
if len(input1) != len(input2):
raise Exception("Input folders don't have the same number of images!")
smallimages = core.imwri.Read(smallimagenames, mismatch = False, alpha = True)
bigimages = core.imwri.Read(bigimagenames, mismatch = False, alpha = True)
smallimages = core.resize.Point(smallimages, width = bigimages.width, height = bigimages.height)
clip = mvf.Preview([smallimages, bigimages, smallalpha, bigalpha])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment