Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running ./gen.py 1000 #109

Open
pendex900x opened this issue Apr 6, 2019 · 0 comments
Open

Error running ./gen.py 1000 #109

pendex900x opened this issue Apr 6, 2019 · 0 comments

Comments

@pendex900x
Copy link

Got this error:

py gen.py 1000

Traceback (most recent call last):
  File "gen.py", line 287, in <module>
    for img_idx, (im, c, p) in enumerate(im_gen):
  File "gen.py", line 278, in generate_ims
    fonts, font_char_ims = load_fonts(FONT_DIR)
  File "gen.py", line 265, in load_fonts
    FONT_HEIGHT))
  File "gen.py", line 73, in make_char_ims
    im = im.resize((int(width * scale), output_height), Image.ANTIALIAS)
  File "C:\Users\X\AppData\Local\Programs\Python\Python37-32\lib\site-packages\PIL\Image.py", line 1801, in resize
    im = im.resize(size, resample, box)
  File "C:\Users\X\AppData\Local\Programs\Python\Python37-32\lib\site-packages\PIL\Image.py", line 1806, in resize
    return self._new(self.im.resize(size, resample, box))
ValueError: height and width must be > 0

Why this happend??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant