Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added IOS_KTX_TO_PNG/ios_ktx2png.linux
Binary file not shown.
28 changes: 19 additions & 9 deletions IOS_KTX_TO_PNG/ios_ktx2png.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
r"""
(c) Yogesh Khatri 2020, MIT License

This library converts ios created KTX files to PNG. These are
Expand All @@ -14,15 +14,24 @@
ship with KTX files that are not of the same type and can't be
parsed with this code.

Dependencies
Installing Dependencies (up to Python 3.12)
------------
pillow, pyliblzfse, astc_decomp

Install deps via pip:
pip3 install pyliblzfse astc_decomp pillow
Create virtual environment:
python3 -m venv ios_ktx2png

Enter virtual environment:
*nix: source ios_ktx2png/bin/activate
Windows: ios_ktx2png\Scripts\activate

Install package deps (pillow, pyliblzfse, astc_decomp_faster) via pip:
pip3 install pyliblzfse pillow astc_decomp_faster


Usage
Usage (up to Python 3.12)
-----
Enter virtual environment (if not done already):
*nix: source ios_ktx2png/bin/activate
Windows: ios_ktx2png\Scripts\activate

python3 ios_ktx2png.py SAMPLE.KTX

Expand All @@ -31,7 +40,7 @@
See main
"""

import astc_decomp
import astc_decomp_faster as astc_decomp
import liblzfse
import os
import struct
Expand Down Expand Up @@ -244,4 +253,5 @@ def main():
print(f'Had an exception - {str(ex)}')

if __name__ == "__main__":
main()
main()

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Darwin folders | darwin_path_generator.py | DARWIN_USER_ folders name generation
Deserialize NSKeyedArchive plists | Deserializer/deserializer.py<br>Deserializer/deserializer.exe | Converts NSKeyedArchive plists to normal (human-readable) plists (Code + compiled exe for windows)
Domain (Active Directory) | Domain_Info/Read_ConfigProfiles.py | Reads user profile information for AD domain users from the ConfigProfiles.binary file
DotUnderscore ._ files | DotUnderscore_macos.bt | An 010 template for parsing extended attribute files that begin with ._
Ktx to Png convertor | IOS_KTX_TO_PNG/ios_ktx2png.py<br>IOS_KTX_TO_PNG/ios_ktx2png.exe | Convert ios created KTX texture images (like app snapshots) to PNG (Code + compiled exe for windows)
Ktx to Png convertor | IOS_KTX_TO_PNG/ios_ktx2png.py<br>IOS_KTX_TO_PNG/ios_ktx2png.exe<br>IOS_KTX_TO_PNG/ios_ktx2png.linux | Convert ios created KTX texture images (like app snapshots) to PNG. Python (up to 3.12) code, compiled exe for Windows, compiled binary for Linux
Notifications | macNotifications.py | Parse Mac Notifications db
Office reg file | Read_OfficeRegDB.py | Parse MS Office created sqlite db (microsoftRegistrationDB.reg)