DavidBuchanan314/ambiguous-png-packer

fails on my pictures

Opened this issue · 3 comments

$ python pack.py 1.png 2.png out.png
Traceback (most recent call last):
  File "pack.py", line 186, in <module>
    main(*sys.argv[1:4])
  File "pack.py", line 120, in main
    b += acomp
TypeError: can't concat bool to bytes

The example runs fine on windows, but it fails to run with other pictures. Are there any special requirements for pictures?

before error, the "False" return from here
image

Change the False to b"" works for me, but it may cause corrupt image sometime