Skip to content

Commit

Permalink
Fix unable to create cover for wasticker
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Oct 10, 2023
1 parent d0501d2 commit 0c5e228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/sticker_convert/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def __init__(self,
self.frames_raw: list[np.ndarray] = []
self.frames_processed: list[np.ndarray] = []
self.opt_comp = opt_comp
if not self.opt_comp.steps:
self.opt_comp.steps = 1

self.size = 0
self.size_max = None
Expand Down
2 changes: 0 additions & 2 deletions src/sticker_convert/job_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ def __init__(self, comp_config_dict: dict):
self.duration_max = to_int(duration)

self.steps = to_int(comp_config_dict.get('steps'))
if not self.steps:
self.steps = 1
self.fake_vid = comp_config_dict.get('fake_vid')
self.cache_dir = comp_config_dict.get('cache_dir')
self.default_emoji = comp_config_dict.get('default_emoji')
Expand Down

0 comments on commit 0c5e228

Please sign in to comment.