forked from 0x2620/pandora
fix poster
This commit is contained in:
parent
343d5fcd66
commit
3a031bbda1
1 changed files with 2 additions and 2 deletions
|
@ -265,8 +265,8 @@ def resize_image(image_source, image_output, width=None, size=None):
|
||||||
height = int(width / (float(source_width) / source_height))
|
height = int(width / (float(source_width) / source_height))
|
||||||
height = height - height % 2
|
height = height - height % 2
|
||||||
|
|
||||||
width = min(width, 1)
|
width = max(width, 1)
|
||||||
height = min(height, 1)
|
height = max(height, 1)
|
||||||
|
|
||||||
if width < source_width:
|
if width < source_width:
|
||||||
resize_method = Image.ANTIALIAS
|
resize_method = Image.ANTIALIAS
|
||||||
|
|
Loading…
Reference in a new issue