only use frombytes, exists for a long time
This commit is contained in:
parent
82ddda4fb7
commit
150639ced3
1 changed files with 2 additions and 5 deletions
|
@ -123,9 +123,6 @@ def video(path, height=96, info=None, framerate=FPS):
|
|||
return
|
||||
else:
|
||||
first = False
|
||||
if hasattr(Image, 'fromstring'):
|
||||
yield Image.fromstring('RGB', (width, height), data)
|
||||
else:
|
||||
yield Image.frombytes('RGB', (width, height), data)
|
||||
|
||||
def audio(path, info=None, samplerate=48000, framerate=FPS):
|
||||
|
|
Loading…
Reference in a new issue