_____ _ _
| __ \ | | | |
| | | | ___ _ __ ___ | |_| |__ _ _
| | | |/ _ \| '__/ _ \| __| '_ \| | | |
| |__| | (_) | | | (_) | |_| | | | |_| |
|_____/ \___/|_| \___/ \__|_| |_|\__, |
__/ |
You're Not in .kzb Anymore... |___/
Unofficial CLI toolbox for Kanzi Studio and startup animation files from VAG MIB2 (including MST2 BOOT) and Virtual Cockpit.
- Download or clone the whole repository; keep
dorothy.py,dorothy_lib/andconfig/together. - Install Python 3.10+. There are no pip dependencies.
- Place originals in the prepared input subfolders, keeping atlas/JSON pairs together:
input/
kzb/
MIB/STATUSBAR.kzb
VC/AU491_Logo.kzb
canim/
Audi/A3_3_Tuerer_NavigationPlus.canim
TT/AudiMIBHigh_SUA_A3.canim
boot/
MST2/startup_1.boot
rsdb/
MQB2/stl.1vw
MH2p/VW_STL_DB.sqlite
lang_data/
lang_data.zip
atlas_json/
atlas_full_LA.atlas
atlas_full_LA.json
- Run
python3 dorothy.py, choose a shortcut and press ENTER.
The workspace lives next to dorothy.py regardless of the terminal's current directory. Scanning is recursive, including brand/model subfolders. Formats are selected by extension rather than folder name. Existing files directly in input/ remain supported. An atlas and matching same-stem JSON count as one displayed input file and one processing job; JSON companions are omitted from the displayed file/type counts and validated with the atlas. Extension matching is case-insensitive. Missing JSON uses UID asset names. Orphan JSON, unsupported files and malformed inputs are reported, not silently marked valid. Hidden files are ignored; symbolic input/custom paths are not supported.
Processing tasks 1–5 never write to input/. Generated assets go to output/; language preferences go to config/settings.json. The explicit A archive/cleanup action saves a verified backup in archives/ before removing session files from input/, output/ and custom/. The repository includes empty folder placeholders only, never vehicle assets. R rescans the input; completed tasks return to the menu. Existing outputs are preserved by numbered output folders. Ctrl+C interrupts a task; EOF exits.
The version appears below the banner. The startup screen shows input file and processing-job counts, with separate counters for KZB, CANIM, BOOT, ATLAS, language ZIPs, RSDB databases and other files. JSON files are excluded from the displayed file/type totals. Orphan JSON still produces a validation error. Blank lines separate processing notes, completed files and the batch summary.
| Shortcut | Task |
|---|---|
1 |
Check integrity of input files (dry run, no generated files) |
2 |
Extract Resource Files (PNG, JPG, TTF, label CSV...) |
3 |
Extract All Assets Files |
4 |
Optimise Textures inside Files |
5 |
Build custom files with provided assets |
A |
Archive & Clean-up: verified ZIP backup, then clear session files |
P |
Pull .kzb files directly from MIB using SCP |
R |
Refresh input scan |
L |
Change language |
C |
Program, author, dependencies and BuyCoffee information |
Q |
Show BuyCoffee information and exit |
All numbered actions process the supported input jobs in one batch. Errors are reported per job and do not stop the rest. The A shortcut now archives the session; atlas processing remains part of the numbered actions.
Outputs preserve a format + relative folder + source stem identity, preventing collisions across formats or vehicle folders. For example, input/canim/TT/AudiMIBHigh_SUA_A3.canim produces output/resources/canim/TT/AudiMIBHigh_SUA_A3/ or output/assets/canim/TT/AudiMIBHigh_SUA_A3/.
| Format | Option 2: resources | Option 3: all assets/data |
|---|---|---|
| KZB | Only indexed Resource Files/ (PNG, JPG, TTF, generic resources) + manifest |
All indexed engine objects/resources + manifest |
| CANIM | img_<ID>.png textures + manifest |
Textures, commands.bin, header.bin, decoded container.anim and manifest |
| BOOT | Editable RGB PNGs under images/ + manifest |
RGB PNGs, native PNG-carrier .mib files under raw/, exact compressed image records, header/commands/MIFA/offset/trailer binaries, command CSV, readable pseudocode and manifest |
| Language ZIP | UTF-8 label CSVs under labels/resources/<module>/ + manifest |
CSVs plus exact original ZIP members under original/ + manifest |
| Atlas + JSON | Named PNGs under images/ + manifest |
PNGs plus atlas.png, header.bin, maxrect.bin, original mapping.json when available and manifest |
Extraction does not run optimisers or download optimisation tools. Embedded PNG/JPEG and other KZB resources are copied byte-for-byte. CANIM/BOOT/atlas store native pixel buffers, so Dorothy wraps decoded pixels in ordinary lossless PNG files for editing; their PNG encoding is newly generated, while original sample values and alpha are preserved. BOOT RGB previews still require the documented packed-colour conversion; native .mib exports and compressed records preserve the native data. Full-export binary metadata remains unchanged. Interrupted extraction may leave partial output. Generated container files are checked before being published to their final path.
Put standalone RSDB databases under input/rsdb/, optionally using model/version subfolders. Supported filename extensions are .sqlite, .sqlite3, .db and .1vw (case-insensitive). The file must contain ordinary SQLite data with a StationLogos table, INTEGER PRIMARY KEY logoId and stationLogo BLOB column. stl.1vw is handled directly without renaming. Unrelated SQLite databases are rejected.
- 1 — integrity: open the input with SQLite read-only/immutable settings; run full
PRAGMA integrity_checkandforeign_key_check, validate the RSDB schema, and check embedded PNG CRCs/zlib/scanlines or JPEG marker structure. NULL/empty logos are reported and retained. PNG checks cover standard depths, palettes, alpha and Adam7. Animated PNG logos are unsupported. JPEG entropy pixels are not decoded by the built-in validator. - 4 — optimise: use the same lossless PNG/JPEG adapters as other Dorothy image workflows on
StationLogos.stationLogo. Work on a SQLite backup in a temporary output directory, replace logo payloads with cleaned versions that do not grow and verify the resulting database before publishing it. PNG has an offline built-in IDAT recompression path; available ImageOptim-family tools can optimise further. JPEG metadata removal works offline; entropy optimisation uses jpegtran/jpegoptim. Progress for large databases is sampled rather than printing thousands of rows. - Options 2, 3 and 5 are currently unsupported for RSDB, with an explicit message. No logo export/replacement interface is implied.
Results preserve the extension and source identity, e.g. input/rsdb/MQB2/stl.1vw becomes output/optimised/rsdb/MQB2/stl/stl_optimised.1vw. Original databases are not modified, and no SQLite journal/lock files are created beside them. Sidecars (-wal, -shm, -journal) are rejected: supply a standalone, checkpointed database copy. Do not edit the source while Dorothy processes it; source-change checks abort publication.
SQLite may keep unused pages after a BLOB shrinks. Dorothy tries VACUUM in a separate candidate copy, then compares logical schema, table data, accessible rowids, non-logo BLOBs, metadata columns, database version values and expected logo hashes against the reference. If compaction changes implicit row identities, it keeps the verified non-compacted copy. A larger candidate with cleaned/optimised logo changes is retained with a notice so image metadata is not restored; an unchanged source copy is used only when there are no logo changes and the rebuilt database is larger. Smaller logo payloads may still yield 0.00% or negative whole-file savings. Percentage results always use actual database file sizes. Schema/version records, station names, countries, logo ids, dimensions, colour layout and alpha are preserved. Databases with triggers or virtual tables are not optimised, because their effects cannot be assumed safe.
The supplied MQB3_LGe_Europe_v1.31.70/RSDB_LGe.sqlite has no plaintext SQLite header and is reported as unsupported/possibly encrypted. Dorothy neither guesses an encryption key nor treats such a file as an ordinary corrupt SQLite database; other jobs continue. A known cipher/key or already decrypted reference would be needed for further work. Header absence alone does not establish a particular cipher. Rebuilt databases still require testing on the target unit; SQLite validity does not establish compatibility with firmware/update-package signatures.
Place the original archive in input/lang_data/lang_data.zip. ZIP inputs are interpreted as MHI2/MHI2Q language archives; unrelated ZIPs are reported as unsupported/invalid rather than extracted as arbitrary files. All regular input files, including language archives, participate in counts and session archiving.
- 1: validate ZIP member CRC-32, member names, language offset tables, UTF-8 and the firmware marker's syntax. This cannot verify that an archive belongs to the vehicle firmware.
- 2: export one CSV per module/language under
output/resources/lang_data/lang_data/labels/resources/<module>/strings_ll_CC.csv. - 3: the same CSVs plus every original member under
original/, byte-for-byte, and a manifest. - 5: import supplied CSVs from the corresponding
custom/lang_data/lang_data/labels/resources/<module>/path and createoutput/custom/lang_data/lang_data/lang_data_custom.zip. - 4: language archives have no textures; Dorothy reports this and writes an unchanged validated copy.
Copy only the CSV files you want to edit, or copy a whole export tree into custom/lang_data/lang_data/. CSV uses UTF-8 with BOM, semicolon separators and columns id;flags;text. Every indexed slot is retained, including empty ones, so line counts are larger than the number of visible labels. Edit only text; retain all rows, ids and flags. Import text columns as text in a spreadsheet editor and preserve quoted multiline cells. Reordering rows is accepted because ids are authoritative. Duplicate/missing ids, changed flags, unknown paths and removed/added runtime placeholders such as %1 are rejected. Populating originally empty slots and adding new languages are outside the supported editing scope. Rich speech markup should be retained; Dorothy does not emulate its rendering.
Missing CSV files keep their original members. Full-export original/ files are accepted only when unchanged, and the manifest is reference-only. Rebuilding recalculates UTF-8 byte offsets, member lengths and ZIP CRC-32 values, preserving index counts, per-label flags, other members, ZIP order/comment and the firmware marker. A no-edit CSV roundtrip returns the exact original ZIP bytes. Input archives and supplied CSVs are never edited.
Checksum distinction: checksum_lang_data.md5 is retained from the reference as a firmware compatibility marker, not replaced with the hash of translated content. This role is described by the author of an existing MHI2 translator. Dorothy validates its hex format and preserves its exact bytes; it does not claim to verify this marker against firmware. The ZIP member CRC-32 values are verified on input and regenerated on changes. Use a reference archive from the intended firmware. Rebuilt language archives still require testing on the target unit; this feature edits labels rather than adding language selection to the vehicle dataset.
Observed .data layout: big-endian uint32 slot count, count+1 big-endian offsets relative to the UTF-8 text buffer, concatenated text, and optionally one flag byte per slot. The supplied archive has flag tables in 21 modules; the speech module has none. Unsupported trailing data or broken offsets are rejected.
BOOT command fields are stored as unsigned 32-bit integers. 4294967295 is the decimal form of 0xFFFFFFFF, a frequent marker in unused argument slots in the observed files. The same bits represent -1 if a particular field is interpreted as signed. New animation_script.csv exports show this argument value as 0xFFFFFFFF, preserving its exact bits without assuming every field is signed. Labels, opcodes and other arguments retain their unsigned values; coordinate comments apply signed interpretation where appropriate. Binary commands and manifest numeric values are unchanged. The CSV is an inspection aid, not a rebuild input.
Full BOOT extraction also writes animation_script.pseudo.txt next to the CSV. It shows named operations, images/img_XX.png references, signed coordinates, waits in seconds, and indented IF/ELSE/END_IF blocks. Every line retains its command index and original label. Extra arguments and unknown opcodes remain visible; ambiguous semantics are annotated. Unbalanced conditionals and missing END are reported without inventing commands. This is an inspection view, not an animation editor or simulator, and it is ignored during custom builds.
To convert an already extracted CSV, run from the Dorothy folder:
python3 -m dorothy_lib.boot_script /path/to/animation_script.csvThis creates the adjacent animation_script.pseudo.txt without overwriting existing files. It accepts decimal or hexadecimal arguments, -1, and legacy empty argument fields. CSV/binary exports remain unchanged.
Use the same source identity under custom/. Copy only modified resources, preserving extracted paths and numbered filenames:
input/kzb/MIB/STATUSBAR.kzb
custom/kzb/MIB/STATUSBAR/Resource Files/Images/00036_statusBar_open.png
input/canim/Audi/START.canim
custom/canim/Audi/START/img_1.png
input/boot/MST2/startup_1.boot
custom/boot/MST2/startup_1/images/img_00.png
input/atlas_json/atlas_full_RGBA.atlas
input/atlas_json/atlas_full_RGBA.json
custom/atlas/atlas_full_RGBA/images/telltale/followStreet.png
Names above are examples; use the exact paths and dimensions from your extraction. Missing replacements keep original data. The source is the reference; manifests are not needed for reconstruction. The new input folder is input/atlas_json/; existing input/atlas/ is still recognised, and custom/atlas/ / output identities remain unchanged. Known metadata files from full exports are ignored; they are not editable animation/packing instructions. Unknown asset paths, symlinks and missing/empty replacement folders are errors. Zero-texture CANIM and BOOT can be rebuilt from its metadata-only export. The v0.1 custom/<stem>/ convention remains supported when the stem is unambiguous.
Results go to output/custom/<source identity>/<stem>_custom.<extension>. Atlas builds also copy the original mapping to the matching _custom.json filename.
- KZB: automatically optimises replacement PNG/JPEG payloads with available lossless tools before packing; built-in PNG compression works offline. It replaces existing
Resource Files, retaining engine hierarchy, object types and metadata. Recalculates file size, payload sizes and offsets. No adding/removing objects or editing engine.bindata. - CANIM: supports the observed
ANIM1variants, grayscale/RGB/RGBA textures and both image-declaration opcodes0x11and0x15(Audi TT samples). Colour PNGs may promote grayscale buffers to RGB/RGBA; bpp, subsequent offsets and the pixel-buffer size are recalculated. Dimensions and image counts remain fixed. Existing opcodes, bindings and the rest of the animation program are preserved. It does not emulate masks, rotation or other animation instructions; preserving their rendering purpose is the user's responsibility. - BOOT: supports the observed MST2
SCRTversion 101/variant 1 withMIFAimage tables, includingstartup_15.bootbuffers with a zero-filled decoded tail. Replaceimages/img_XX.pngwith same-size opaque RGB PNGs, including colour replacements for grayscale-looking images. The native packed format shares colour information between pixel pairs: importing edited RGB can quantise colours. Unchanged exported RGB preserves the original native bytes exactly. Alternatively, useraw/img_XX.mibfor exact native replacement; these PNG carriers encode packed channels, not visible grayscale/alpha. A full export may be copied intocustom/: unchanged alternatives do not override edited images; conflicting edits to both representations are rejected. Header, animation program and padding are preserved; offsets and lengths are recalculated. Binary metadata is not an animation editor, and modifiedrecords/*.binare rejected. No adding/removing/resizing images. - Atlas: patches existing image rectangles, retaining dimensions, channel layout, packing coordinates, gutters and the MAXRECT trailer. LA accepts grayscale+alpha; colour replacements require an RGBA atlas. The format is not silently promoted. Edit individual
images/files; a modified fullatlas.pngis rejected instead of ignored. Shared/conflicting edits are checked. No repacking or adding/removing images.
CANIM, BOOT and atlas imports support non-interlaced 8-bit L/LA/RGB/RGBA PNGs and indexed PNGs with transparency. Export 16-bit, Adam7 or APNG input as an ordinary 8-bit PNG first. No automatic scaling, colour correction or alpha premultiplication is performed. Runtime compatibility still requires testing on the intended unit.
Custom texture optimisation applies to the supplied assets during option 5, using temporary copies; files under custom/ are never edited. KZB keeps compressed PNG/JPEG payloads, so their smaller encodings reduce the container size. CANIM recompresses the rebuilt native buffer; BOOT optimises newly changed native image streams. Atlas stores raw pixels, so PNG compression cannot reduce the resulting atlas container. Unchanged BOOT streams and no-op CANIM builds retain the original compressed bytes.
Optimisation (option 4) and supplied texture processing during custom builds (option 5) remove image descriptions, profiles and EXIF by default. Extraction (options 2/3) and integrity checks (option 1) do not strip source resources. Neither input/ originals nor supplied custom/ files are edited. This policy concerns image metadata, not container headers, scene bindings, animation commands, SQLite records/versions or language-archive firmware markers.
- PNG: remove nonessential ancillary chunks, including ICC (
iCCP), gamma/chromaticity/sRGB/HDR colour tags, EXIF (eXIf), text/XMP, timestamps, density, background hints and private ancillary metadata. Preserve critical decoding chunks,PLTE,tRNStransparency and APNG frame/control data. Verify sample values, dimensions, bit depth, palette and alpha independently of removed metadata. No palette reduction or sample conversion is requested. - JPEG: remove EXIF/orientation, ICC, XMP/IPTC, comments, thumbnails and other APP metadata. Retain minimal JFIF/Adobe decoder colour hints where needed, normalising JFIF density to 1:1 and removing thumbnails. Standalone metadata removal preserves coding tables, scans and entropy bytes, including progressive scans and restart markers. Optional entropy optimisation uses
jpegtran -copy none -optimizeorjpegoptim --strip-allwithout quality reduction; framing and decoder colour hints are checked before accepting a smaller candidate. - Native CANIM/BOOT/atlas textures: these containers store pixel buffers, not ordinary PNG/JPEG files, and have no embedded ICC/EXIF blocks to strip. Imported PNG metadata is not carried into the native buffer. Animation commands, BOOT decoded padding, atlas packing data and source JSON mappings remain intact. PNGs emitted by atlas optimisation use the same cleaning adapter.
- RSDB: clean only the image BLOBs; retain station/database metadata, schema, ids and non-image BLOBs. Compaction is used only if logical data and row identities match. If keeping the cleaned images requires a larger non-compacted database, retain that verified copy and report actual negative savings rather than silently restoring image metadata.
Removing colour profiles/gamma does not convert pixel values to sRGB or apply colour correction; colour-managed viewers can display the resulting untagged image differently. EXIF orientation is removed without autorotation. The optimisation is lossless with respect to native image samples, not metadata-dependent presentation. Metadata cleaning works without external tools for PNG and JPEG; external tools improve entropy compression when available. Further compression never reintroduces stripped metadata or replaces the cleaned baseline with a larger candidate.
Option 4 handles each format according to how it stores its pixels:
- KZB: extracts embedded PNG/JPEG to temporary files inside
output/, runs sample-preserving image tools and inserts cleaned candidates. Image metadata is stripped; PNG samples, colour layout, palette/alpha and animation data are compared. JPEG metadata is stripped without changing entropy data, with optional lossless entropy optimisation and framing/colour-hint checks. The result is<stem>_optimised.kzb. - CANIM: its textures are raw pixels, not PNGs. Dorothy tries several zlib strategies and retains the smallest stream, including the original as a candidate. The entire decoded file — pixels and animation commands — must remain byte-identical. No external optimiser is needed. The result is
<stem>_optimised.canim; the original stream is retained when nothing gets smaller. - BOOT: recompresses each native image zlib stream, retaining the original when smaller. Native pixels, image dimensions, animation commands and padding remain unchanged; RGB conversion is not part of optimisation. No external optimiser is needed. The result is
<stem>_optimised.boot. - Atlas: its supported layout stores uncompressed pixels and has no compatible compression flag. Dorothy exports and optimises PNG assets in
exported/, writes a byte-identical validated<stem>_optimised.atlasand matching JSON, and clearly reports zero container bytes saved. PNG savings are shown separately. Replacing raw pixels with PNG/zlib bytes would corrupt this atlas format and is not attempted.
Outputs are under output/optimised/<source identity>/. PNG processing always has a built-in lossless fallback. JPEG entropy optimisation needs an external executable. Extra tools are the families used by ImageOptim:
- PNG:
oxipng,optipng, orpngcrush. - JPEG:
jpegtranorjpegoptim.
Dorothy searches PATH, its private tool cache and common ImageOptim app bundle locations. On macOS, the CLI automatically downloads the official ImageOptim 1.9.3 archive when an optimisation/custom-build task needs missing tools. The download has a pinned SHA-256, a size limit and a timeout; only selected executables and their required libraries are extracted. A cached installation is reused. Neither the GUI nor an installer is launched, and no administrator access is required. No GUI lossy preferences or JPEG quality reduction are used.
The repository on GitHub contains macOS/Xcode source; Dorothy downloads the publisher's ready-built package from https://imageoptim.com/ImageOptim.tbz2. Tools are stored under ~/Library/Caches/Dorothy/imageoptim-1.9.3/ (override the parent with DOROTHY_TOOLS_CACHE). Nothing is downloaded into input/, output/ or custom/. Checksum changes fail closed and require updating Dorothy or manually installing tools. If downloading fails, built-in PNG compression and PNG/JPEG metadata removal still work. JPEG entropy optimisation uses installed external tools when available. Extraction is independent of these tools.
Use python3 dorothy.py --offline (also works with --task) to prevent downloads. Linux does not download macOS executables: built-in PNG compression works directly, and optional external tools can be installed with the platform package manager. No executables are bundled with Dorothy.
Example macOS installation: brew install oxipng jpeg-turbo. Add the JPEG package's bin/ directory to PATH when keg-only. Debian/Ubuntu alternatives include optipng and libjpeg-turbo-progs.
Every optimisation result shows input/output file sizes, saved bytes and the reduction as a percentage of the original file size:
reduction = (original_bytes - output_bytes) / original_bytes * 100
Percentages are displayed to two decimal places. An unchanged file reports 0.00%. Raw atlas containers therefore report 0.00%, while exported PNG savings include their own percentage, based on the combined original PNG size.
ANSI colours distinguish counters, progress, success, warnings and failures. They are enabled on compatible terminals and disabled for redirected output, TERM=dumb, or when NO_COLOR is set. Text and translation files contain no hardcoded escape codes. Colours do not affect saved files.
Choose A to start a fresh session. The action includes all regular files, including hidden files, under input/, output/ and custom/. Directory structure is stored with these three top-level names so the ZIP can be restored into a workspace. Empty directories are included. archives/, configuration and the program itself are not included.
The archive uses the local computer's date/time and is saved as:
archives/Dorothy_Archive_2026-11-20_12-34-56.zip
Dorothy first writes a temporary ZIP with ZIP64 support, closes and flushes it, then reads every archived member to verify its CRC, length and SHA-256 against the bytes read from the source. It checks that the session file inventory has not changed before publishing the completed archive. Only then does cleanup begin.
Cleanup removes only the exact files already backed up, rechecking their identity/content before deletion. Folder templates and empty .gitkeep placeholders are retained; input/kzb/, input/canim/, input/boot/, input/atlas_json/, input/lang_data/, input/rsdb/, output/ and custom/ remain ready for use. Existing archives are never overwritten: if the same timestamp already exists, retry in the next second. Symbolic links and special files are rejected rather than followed.
If writing or verification fails, no source files are removed. If cleanup fails or is interrupted after publishing, the verified archive is retained and its path is reported; already removed files can be recovered from it, and remaining/new files are not forcibly deleted. This is not a multi-folder atomic transaction. Do not edit the session in another process while archiving. The program never recursively deletes an unverified directory tree.
The action can also be run explicitly without the menu:
python3 dorothy.py --task AThis command performs the same cleanup, so use it only when you intend to close the current session. ZIPs are excluded from Git.
Option 1 is read-only and dispatches by file format:
- KZB: observed MIB2/VC header profiles, recursive directory lengths, object counts, payload boundaries, metadata spans and final file size; PNG CRC/zlib/scanline checks, JPEG marker framing, font table bounds and ZIP/XLSX directory recognition. Empty resources are warnings.
- CANIM: zlib checksum/end/length, ANIM1 header, command-block bounds, declarations, supported bpp, unique IDs, contiguous non-overlapping image ranges and declared pixel-buffer length. Opcode
0x15is retained; its complete rendering semantics are not assumed. - BOOT: SCRT version/variant, command alignment, draw-image references, MIFA length, ordered image offsets, dimensions, per-image zlib checksums/end/decoded sizes and supported zero padding. Image buffers may contain either
width*height*2packed-pixel bytes or those same bytes followed by exactlywidth*heightzero bytes (observed instartup_15.boot). The latter is not interpreted as RGB; non-zero or differently sized tails are rejected. The manifest reportsdecoded_bytesfor native pixels,stored_decoded_bytesfor the whole inflated image buffer anddecoded_padding_bytesfor its zero tail. The tail is retained during custom builds and optimisation. Unknown opcodes and missing END are reported as warnings, preserving observed originals. - RSDB: full SQLite integrity/foreign-key checks, expected logo schema, bounded PNG/JPEG BLOB validation and explicit unsupported/encrypted-header handling.
- Language ZIP: ZIP member CRC-32, bounded decompression, safe member paths, UTF-8 string tables, byte offsets and optional flag-table sizes; preserve the firmware MD5 marker.
- Atlas/JSON: TC/BIN headers, UID sets, dimensions, integer UV rectangles, buffer bounds, safe output names and the MAXRECT trailer signature. Metadata is checked even though it is not a separate batch job.
This does not prove runtime compatibility, decode all JPEG pixels, validate every animation opcode or fully interpret the MAXRECT trailer. Rebuilt files have not been tested on real MIB/VC hardware. Keep originals. Decoded-image/CANIM inspection limits apply as documented in the code; these are toolbox safeguards, not device RAM limits.
P asks for a hostname/IPv4 address, SSH user, port, absolute remote folder and legacy SCP preference. It reads *.kzb non-recursively with local OpenSSH and saves them under output/pulled/<host>/. Normal host-key checks remain enabled, and credentials are handled by SSH without storage in Dorothy. Legacy SCP -O is selectable for QNX systems without SFTP. Paths with spaces/shell metacharacters are rejected.
Copy downloads into input/kzb/ yourself; the pull action never changes input/ or uploads to the vehicle. Partial downloads may remain after a failed transfer.
English is the initial language. Labels, menus, prompts and messages are in config/lang/en.json. Copy it to e.g. pl.json, translate values and language_name, retaining keys and placeholders. Select it with L. Missing keys fall back to English; invalid translations are reported. Existing translations should update their menu arrays and result placeholders for v0.6.0 (including the {boot} input counter, BOOT notices, optimiser download messages and the {lang_data} / {rsdb} counters; displayed type counters no longer include {json}).
config/about.json defines author, version, repository and coffee URL; config/banner.txt holds the ASCII art. Low-level diagnostics from parsers, Python, SSH or external tools may remain in English. Both C and explicit Q show the BuyCoffee URL.
python3 dorothy.py --task 1
python3 dorothy.py --task 2 --language en
python3 dorothy.py --root /path/to/workspace --task 5
python3 -m unittest discover -s tests -vSingle-task mode returns non-zero on an empty batch, unsupported/failed input or interruption. A custom workspace needs the same config/ structure. Tests run offline with downloads mocked; menu exit checks use the translated bye label instead of a hardcoded English phrase. Tests generate their own redistributable fixtures for mixed-format batches, colour promotion, offsets, JSON pairing, readonly inputs, output collisions, optimisation, menus, version and exit behaviour. No vehicle binaries are included in the repository. CI uses actions/checkout@v6 and actions/setup-python@v6 (Node 24) with Ubuntu and macos-15-intel, testing Python 3.10/3.13 independently (fail-fast: false). The pinned Intel label avoids the reported ARM64 runner queue; this matrix does not cover ARM64. GitHub capacity/internal-server errors occur before tests and cannot be fixed by Python changes; rerun affected jobs after the service recovers. Optional real-file codec checks can be enabled with DOROTHY_BOOT_CORPUS=/path/to/boot/samples; these binaries are not bundled.
- RSDB SQLite integrity checks and station-logo optimisation in options 1 and 4, including
.1vwfiles without renaming. - Prepared
input/rsdb/, RSDB counters, archive cleanup support and explicit unsupported/encrypted MQB3 handling. - Verified database copies preserve schema, station metadata and row identities; compaction is accepted only when logical data remains unchanged.
- PNG/JPEG optimisation and custom packing remove image metadata, colour profiles, EXIF, comments and thumbnails by default while retaining native samples, palette/transparency and required decoder/animation data.
- Built-in PNG/JPEG metadata removal works without external tools; jpegtran/jpegoptim use metadata-stripping options for optional lossless entropy optimisation.
- Extraction preserves original resources. Native CANIM/BOOT/atlas buffers, animation commands, container metadata and language firmware markers remain intact.
- Colour profiles are removed without colour conversion; EXIF orientation is removed without autorotation. Metadata-dependent presentation can therefore differ.
- MHI2/MHI2Q
lang_data.zipintegrity checks, CSV label exports and custom archive builds integrated into the unified menu. - UTF-8 CSV editing with stable label ids and flags, runtime-placeholder validation and recalculated text offsets and ZIP CRC-32 values; the reference firmware MD5 marker is preserved.
- Full language exports retain original ZIP members; no-edit CSV roundtrips return the exact original archive bytes.
- Prepared
input/lang_data/, language ZIP counters and archive cleanup support. - Updated GitHub Actions to Node 24-based checkout/setup-python v6, pinned macOS Intel runners, independent matrix jobs and cancellation of superseded runs.
- Automatic checksum-verified ImageOptim tool downloads on macOS, reusable cache and
--offlinemode. - Built-in lossless PNG compression and automatic optimisation of supplied textures during custom builds; extraction preserves source resources without running optimisers.
- Renamed
input/atlas/toinput/atlas_json/, retaining legacy path support and existing custom/output identities. JSON companions are excluded from displayed input totals. - More space between CLI processing results and a translation-aware exit-message test.
- Readable BOOT pseudocode exports and conversion of existing animation CSVs; sentinel arguments display as
0xFFFFFFFF. - Support for zero-tailed decoded image buffers observed in
startup_15.boot, preserved during extraction, custom builds and optimisation.
- MST2
.bootsupport across integrity, resource/full extraction, optimisation and custom builds. - Ordinary editable RGB PNG exports, native
.mibexports and complete binary container partitions. - BOOT input counters, recursive discovery, archive cleanup templates and
input/boot/. - Reference-preserving custom builds and lossless native-stream recompression.
- File-size reduction percentages, including separate exported-atlas PNG percentages.
- ANSI-coloured counters, statuses and results, with plain-text/NO_COLOR support.
- Separate input counters for each file type.
A - Archive & Clean-up, verified ZIPs underarchives/and reusable session folders.
- Prepared
input/kzb/,input/canim/,input/atlas/with recursive discovery. - Unified integrity, resource/full extraction, optimisation and custom build menu actions.
- Integrated CANIM support, including Audi TT declarations and grayscale-to-colour rebuilding.
- Integrated atlas/JSON validation and custom atlas builds; removed the separate
Aaction. - Version under the banner; BuyCoffee on
Q; version bumped to0.2.0.
Coffee-powered development ☕ BuyCoffee
Author: mrfix. Unofficial project, not affiliated with Volkswagen Group or Rightware.
- ImageOptim and its tools
- OxiPNG, OptiPNG, pngcrush
- jpegtran/MozJPEG, jpegoptim
- SQLite integrity checks, backup API, VACUUM, read-only/immutable URI options
- OpenSSH SCP
- MIB2 Toolbox CANIM format reference
- MST2 Toolbox and mib2image BOOT colour-format reference
- ASCII art tool
Dorothy imports only Python's standard library. Optional third-party executables keep their own licences and are not redistributed. Local inputs, modifications, outputs and settings are excluded from Git.
- Configure
https://dorothy.mib-helper.comredirection to this repository. .mcfVW/Seat/Skoda MHI2 assets support.mifVW/Seat/Skoda MHIG assets support.cffnavigation assets support.mxfMapConfig support- CarPlay icon support
- input cleanup shortcut
- pulling original assets with
scpinto input folder - pushing modified assets with
scpback into MIB/QNX - default credentials for MIB/QNX
- default directories for assets in MIB/QNX
- wheel texture transform & merge
- car texture coloring with shader
- Gracenote support
metainfo2.txtgenerator?- porsche canim tests
.kzbtests from other Audi trains- changelog in separate .MD
- usage examples in separate .MD
- todos in separate .MD