A toolkit for extracting and creating PlayStation 2 TIM2 textures. Originally developed for use with the PlayStation BB Navigator (PSBBN) textures, but adaptable for other projects too.
Extracts images from PlayStation 2 TIM2 format .tm2 textures and saves them as .png images in the current working directory.
Usage:
tm2extract.py [-f|--flatten] <input.tm2>
--flattenor-f: removes the alpha channel in the exported PNG- Without this flag, the PNG is exported with the alpha channel preserved
Creates TIM2 format .tm2 textures from an image and saves them to the current working directory.
Usage:
tm2create.py [-f] <input.png>
- Some images with very few colors can cause MEDIANCUT to fail, in which case, FASTOCTREE should be used via the -f flag.
TM2 Toolkit - Copyright © 2026 by CosmicScale
All scripts written by CosmicScale