Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

writep8 arg producing png not p8 #67

Open
benbaker76 opened this issue Mar 7, 2020 · 0 comments · May be fixed by #95
Open

writep8 arg producing png not p8 #67

benbaker76 opened this issue Mar 7, 2020 · 0 comments · May be fixed by #95

Comments

@benbaker76
Copy link

Using the writep8 arg will create a png not a p8 file.

./p8tool writep8 9970.p8.png
9970.p8.png -> 9970_fmt.p8.png

It should create 9970_fmt.p8 not 9970_fmt.p8.png.
In tool.py need to change

            if fname.endswith('.p8.png'):
                out_fname = fname[:-len('.p8.png')] + '_fmt.p8.png'

to

            if fname.endswith('.p8.png'):
                out_fname = fname[:-len('.p8.png')] + '_fmt.p8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant