This project contains models and algorithms required for processing images that appear in various image resources.
Major credit goes towards the creators of S4PI, specifically those who contributed to the DstResource. Without this implementation, I wouldn't have been able to figure out shuffling/unshuffling for the DST compression algorithm.
While all S4TK software is in pre-release, this package is especially experimental. I cannot guarantee that conversions between image formats is going to go smoothly. For best results, use PNG for both importing and exporting DDS images. JPG/BMP do not support transparency, and GIF/TIFF may appear discolored when exported.
Install the package as a dependency from npm with the following command:
npm i @s4tk/images
Sims 4 Toolkit (S4TK) is a collection of creator-made modding tools for The Sims 4. "The Sims" is a registered trademark of Electronic Arts, Inc. (EA). Sims 4 Toolkit is not affiliated with or endorsed by EA.
All S4TK software is currently considered to be in its pre-release stage. Use at your own risk, knowing that breaking changes are likely to happen.
Visit sims4toolkit.com/#/docs/images for the most up-to-date documentation.