mirror of
https://github.com/koush/scrypted.git
synced 2026-09-17 09:10:38 +01:00
python-codecs: fix libav jpeg export
This commit is contained in:
@@ -37,7 +37,8 @@ class PILImage(scrypted_sdk.VideoFrame):
|
||||
|
||||
def save():
|
||||
bytesArray = io.BytesIO()
|
||||
pilImage.pilImage.save(bytesArray, format=options['format'])
|
||||
pilImage.pilImage.save(bytesArray, format='JPEG')
|
||||
# pilImage.pilImage.save(bytesArray, format=options['format'])
|
||||
return bytesArray.getvalue()
|
||||
|
||||
return await to_thread(lambda: save())
|
||||
|
||||
Reference in New Issue
Block a user