You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I try to convert an image while giving height and width arguments I get a valueError from the factor being set. However, I only supplied the input, output, height, and width.
PS C:\...\pyxelate\pyxelate> python main.py "testIcon.jpg" "output.png" --height 32 --width 32
Pyxelating testIcon.jpg...
Traceback (most recent call last):
File "main.py", line 202, in <module>
main()
File "main.py", line 195, in main
convert(args)
File "main.py", line 37, in convert
pyx = get_model(args)
File "main.py", line 23, in get_model
return Pyx(
File "C:\...\pyxelate\pyxelate\pyx.py", line 121, in __init__
raise ValueError("You can only set either height + width or the downscaling factor, but not both!")
ValueError: You can only set either height + width or the downscaling factor, but not both!
Description
Whenever I try to convert an image while giving height and width arguments I get a valueError from the factor being set. However, I only supplied the input, output, height, and width.
pyxelate/pyxelate/pyx.py
Lines 120 to 121 in fbbcfbc
Seems like the argument parsing is defaulting the factor to 1
pyxelate/pyxelate/main.py
Line 91 in fbbcfbc
Setting the default to
None
makes the command work as intended (outputs a 32x32 image)The text was updated successfully, but these errors were encountered: