Skip to content

About

A simple program that converts PNG to RAW (Used and tested with PS2SDK)

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

PNG2RAW

A simple C program that converts PNG images to RAW format (tested and used with PS2SDK).

Requirements

Compilation

On Linux or MinGW:

gcc png2raw.c -o png2raw -lm

On Windows (MinGW):

gcc png2raw.c -o png2raw.exe -lm

Usage

./png2raw file.png output.raw rgb
./png2raw file.png output.raw rgba
  • The last argument sets the output format: rgb (24 bits) or rgba (32 bits).

Example

./png2raw texture.png texture.raw rgba

This will generate a texture.raw file containing the raw pixel data.

Notes

  • The generated RAW format is useful for homebrew projects, such as with PS2SDK.
  • Make sure the input PNG file exists and is accessible.

License

MIT or public domain (like stb).

About

A simple program that converts PNG to RAW (Used and tested with PS2SDK)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages