Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2020-07-10 07:58:51

redgreen
Member
Registered: 2019-05-27
Post 6/11

Converting .2bpp to .png

Hello. I have three sprites from polishedcrystal that I want to convert to .png format. Is there any way to do that? Thank you.

Offline

#2 2020-07-10 19:52:50

rbroab
Member
Registered: 2017-06-13
Post 99/101

Re: Converting .2bpp to .png

first, find where the image you want to convert is. In the example, I will use a file in gfx/pics. In cygwin, type in the following.

python gfx.py png gfx/pics/yourpokemon/frontorback.2bpp

You can also do this to convert png into .2bpp and also covnert .2bpp to .2bpp.lz by doing this

python gfx.py .2bpp gfx/pics/yourpokemon/frontorback.png

Offline

#3 2020-07-11 01:53:19

redgreen
Member
Registered: 2019-05-27
Post 8/11

Re: Converting .2bpp to .png

rbroab wrote:

first, find where the image you want to convert is. In the example, I will use a file in gfx/pics. In cygwin, type in the following.

python gfx.py png gfx/pics/yourpokemon/frontorback.2bpp

You can also do this to convert png into .2bpp and also covnert .2bpp to .2bpp.lz by doing this

python gfx.py .2bpp gfx/pics/yourpokemon/frontorback.png

I've gotten Cygwin and python gfx.py, but now it denies the image I'm trying to convert. What's the problem this time?

Offline

#4 2020-07-11 06:39:23

rbroab
Member
Registered: 2017-06-13
Post 100/101

Re: Converting .2bpp to .png

I have no idea what you said means haha. Can you post the output that Cygwin is giving you?

Offline

#5 2020-08-04 18:49:08

redgreen
Member
Registered: 2019-05-27
Post 9/11

Re: Converting .2bpp to .png

rbroab wrote:

I have no idea what you said means haha. Can you post the output that Cygwin is giving you?

I took a screenshot of the output and it's on my computer, but I don't know how to upload the screenshot.

Offline

#6 2020-08-25 12:53:10

redgreen
Member
Registered: 2019-05-27
Post 11/11

Re: Converting .2bpp to .png

$ python gfx.py png "X:\Downloads\bill.2bpp"
-bash: /cygdrive/c/Users/quintoncole/AppData/Local/Microsoft/WindowsApps/python: Permission denied

Offline

#7 2020-08-29 03:59:57

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,193/1,193

Re: Converting .2bpp to .png

The Cygwin environment is quite separate from the Windows environment. Cygwin should not try to access applications installed under Windows (like applications in your Windows user's AppData directory)

Cygwin should use applications installed in the Cygwin environment. By default, this is found at C:\cygwin64\bin
If you don't see python in that directory, you can install python by selecting the python package in the Cygwin setup wizard

I'm guessing you manually modified your Cygwin PATH to include your user's AppData/Local/Microsoft/WindowsApps/ directory. You may need to undo this in order to avoid further issues, even after properly installing python in Cygwin

Offline

Board footer

Powered by FluxBB