mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-26 20:24:07 -05:00
gfx.py: PNGs should be opened in binary mode
PNG files were opened as text files, thus the signature 0x0D 0x0A bytes were swallowed depending on OS. Signed-off-by: Tauwasser <tauwasser@gmail.com>
This commit is contained in:
@@ -634,7 +634,7 @@ def png_to_2bpp(filein, **kwargs):
|
||||
arguments.update(kwargs)
|
||||
|
||||
if type(filein) is str:
|
||||
filein = open(filein)
|
||||
filein = open(filein, 'rb')
|
||||
|
||||
assert type(filein) is file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user