diff options
author | Tauwasser <tauwasser@gmail.com> | 2016-02-28 23:14:53 +0100 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2016-04-27 00:17:42 -0400 |
commit | e46b63cca225d6780f00c997aecb7087c866a8cc (patch) | |
tree | 5131a507af463456c868d51f60b8a70f6e60b9ff | |
parent | 2ae1ae2f19c842da965cd3db1b0da8bf108ac235 (diff) |
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>
-rw-r--r-- | pokemontools/gfx.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemontools/gfx.py b/pokemontools/gfx.py index a728de1..f93553d 100644 --- a/pokemontools/gfx.py +++ b/pokemontools/gfx.py @@ -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 |