Skip to content

Commit

Permalink
fix possibly unbound variables
Browse files Browse the repository at this point in the history
  • Loading branch information
noelleleigh committed Sep 6, 2020
1 parent 21cea80 commit 76d3d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glitch_me/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def make_still(input_path: str, output_dir: str,
im = ImageOps.exif_transpose(im)

# Handle initial image scaling
original_size = im.size
if line_count is not None:
original_size = im.size
scale_factor = line_count / im.size[1]
scaled_size = tuple(
map(lambda val: int(val * scale_factor), im.size)
Expand Down Expand Up @@ -156,8 +156,8 @@ def make_gif(input_path: str, output_dir: str,
im = ImageOps.exif_transpose(im)

# Handle initial image scaling
original_size = im.size
if line_count is not None:
original_size = im.size
scale_factor = line_count / im.size[1]
scaled_size = tuple(
map(lambda val: int(val * scale_factor), im.size)
Expand Down

0 comments on commit 76d3d2c

Please sign in to comment.