Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Eiim authored Apr 29, 2021
1 parent 9810d6b commit 39ac5f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TGAHzParse.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def torgb(b2, b1):
if(image):
# bytes to 5-bit and 8-bit RGB
r,g,b,ra,ga,ba = torgb(b2,b1)
#print(b2,b1,r,g,b)

for j in range(packlen):
imgdat.append(ra)
Expand Down Expand Up @@ -109,7 +108,8 @@ def torgb(b2, b1):

if(image):
# Should be 288000
print(len(imgdat))
if(log):
print(len(imgdat))

# Needs to be immutable, so convert to bytes instead of bytearray
im = Image.frombytes('RGB', (240, 400), bytes(imgdat))
Expand Down

0 comments on commit 39ac5f4

Please sign in to comment.