Small error correction
This commit is contained in:
parent
e6bbc9ce8d
commit
3c81e9af72
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ def calculate(input):
|
|||
|
||||
# Calculate output resolution
|
||||
if float(orig_aspect) == 0 or orig_aspect == "":
|
||||
orig_aspect == float(orig_width)/float(orig_height)
|
||||
orig_aspect = float(orig_width)/float(orig_height)
|
||||
width = _basewidth
|
||||
height = int(round(_basewidth / float(orig_aspect) / 16) * 16)
|
||||
if (height > _maxheight):
|
||||
|
|
Loading…
Reference in a new issue