poster urls, convert images to RGB before resizing
This commit is contained in:
parent
4b09b8fd98
commit
be116ef7a5
4 changed files with 341 additions and 20 deletions
|
|
@ -213,7 +213,7 @@ def frame(videoFile, frame, position, width=128, redo=False):
|
|||
|
||||
def resize_image(image_source, image_output, width=None, size=None):
|
||||
if exists(image_source):
|
||||
source = Image.open(image_source)
|
||||
source = Image.open(image_source).convert('RGB')
|
||||
source_width = source.size[0]
|
||||
source_height = source.size[1]
|
||||
if size:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue