Handles conversion to and from the CTPK image format used on the 3DS
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

ctpktool

Handles conversion to and from the CTPK image format used on the 3DS

Dumping CTPK

To dump a .CTPK file with images converted to .PNG format:
ctpktool.exe -x file.ctpk
or
ctpk.tool.exe -x file.ctpk -o output_folder

To dump a .CTPK file with raw image output data:
ctpktool.exe -r file.ctpk
or
ctpk.tool.exe -r file.ctpk -o output_folder

You most likely want to use -x.

Creating CTPK

To create a .CTPK file from a folder (folder most contain .xml files generated while dumping):
ctpktool.exe -c input_folder
or
ctpktool.exe -c input_folder -o output.ctpk

Credits

Normmatt - For allowing me to use code from texturipper and answering questions about the format
Gericom - Texture code from EveryFileExplorer (https://github.com/Gericom/EveryFileExplorer)