Update the project to run with modern uv/bun (or python/nodejs) environment #7
@ -99,7 +99,7 @@ def process_pdf(path, *, maxsize, maxzoom, quality, page_number=0):
|
||||
def process_video(path, *, maxsize, quality):
|
||||
frame = None
|
||||
imgdata = io.BytesIO()
|
||||
istream = ostream = icontainer = ocontainer = icc = occ = frame = None
|
||||
istream = ostream = icc = occ = frame = None
|
||||
with (
|
||||
av.open(str(path)) as icontainer,
|
||||
av.open(imgdata, "w", format="avif") as ocontainer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user