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
❯ python converter.py --to-macpaint ~/Desktop/input.png ~/Desktop/output.mac
Traceback (most recent call last):
File "/Users/rockwell/Projects/macpaint_file/converter.py", line 24, in <module>
main(args)
File "/Users/rockwell/Projects/macpaint_file/converter.py", line 11, in main
macpaint_file = png.convert()
^^^^^^^^^^^^^
File "/Users/rockwell/Projects/macpaint_file/formats.py", line 131, in convert
add_rows = MacPaintFile.HEIGHT - height
^^^^^^
NameError: name 'height' is not defined
If I change it to self.height I get a new error:
File "/Users/rockwell/Projects/macpaint_file/macpaint.py", line 173, in _gen_packed_data
assert len(bit_line) == cls.WIDTH / 8, f"error in condensing bytes into bits; line is only {len(bit_line)} bytes"
AssertionError: error in condensing bytes into bits; line is only 128 bytes
Here is the input PNG:
Any help would be appreciated, thank you.
The text was updated successfully, but these errors were encountered:
If I change it to
self.height
I get a new error:Here is the input PNG:
Any help would be appreciated, thank you.
The text was updated successfully, but these errors were encountered: