HUB
Sign inSign up

pacnpal/compressatorium

By pacnpal

•Updated 16 days ago

Web UI for converting game images

Image
0

10K+

pacnpal/compressatorium repository overview

⁠Compressatorium

Fork notice: This is a fork of MarcTV's Docker CHD Converter. It adds a Web UI and more conversion tools on top of the original CLI converter. Thanks to MarcTV⁠ for the original.

A game image converter that wraps twelve tools: CHDMAN (MAME), dolphin-tool (Dolphin Emulator), z3ds_compressor (Nintendo 3DS), nsz (Nintendo Switch), maxcso (PSP/PS2 CSO/ZSO), 7z (handheld ROM archives), makeps3iso (PS3 decrypted folder → ISO), nkit2iso (NKit-shrunk GameCube/Wii image → ISO), JWUDTool (Wii U WUD ↔ WUX), extract-xiso (Xbox / Xbox 360 disc image → XISO), rom-converto (the converter RomM ships; Xbox 360 disc image → ZAR, PSP PBP → ISO, 3DS CIA ↔ CCI), and unar (a multi-part RAR set from usenet → the one file inside it). It also repacks eXoDOS game zips for RomM's in-browser DOS player. Pick the tool that matches your files and convert from a browser, or run it headless from the command line.

⁠Features

  • Eleven tools in one. CHDMAN, Dolphin, 3DS, Switch, CSO/ZSO, handheld ROM (GB/GBC/GBA/DS), PS3 ISO (a decrypted PS3 folder packed to .iso), NKit (an NKit-shrunk GameCube/Wii image restored to a full .iso), Wii U (WUD ↔ WUX), Xbox (a full Xbox / Xbox 360 disc image trimmed to XISO), or rom-converto (an Xbox 360 disc image packed to ZAR for Xenia, a PSP PBP turned back into its ISO, or a 3DS CIA converted to CCI and back), chosen per job.
  • Web UI for browsing files and converting them. The tool picker filters the whole interface down to the tool you chose.
  • Nested directories and archives. Browse subfolders and look inside ZIP, 7z, and RAR archives.
  • Multiple volume mounts so you can keep separate game libraries separate.
  • File detection that works out which files each tool can convert.
  • Existing-output detection with skip, rename, or overwrite.
  • Delete-on-verify. Optionally remove the source once the output passes its check. Off by default. By default the output must be Round-tripped: it decodes to the same content as the source. CHDMAN Create LD offers no delete-on-verify.
  • Progress tracking through a live job queue.
  • File info for CHD, Dolphin, 3DS, Switch, CSO, handheld ROM, NKit, Wii U, Xbox, and ZAR files.
⁠Supported Conversions
ToolPlatform / UseInput FormatsOutput FormatsCompression ControlExternal KeysBinary
CHDMANCD / DVD / HD / LaserDisc discs.gdi, .cue, .bin, .iso, .chd.chd, .cue, .bin, .iso, .raw, .aviCodec list (zstd, zlib, …)Nonemame-tools
DolphinGameCube / Wii discs.iso, .wbfs, .rvz, .wia, .gcz.rvz, .wia, .gcz, .isoCodec + numeric levelNonedolphin-emu
3DSNintendo 3DS ROMs.cci, .cia, .3ds, .cxi, .3dsx, .zcci, .zcia, .z3ds, .zcxi, .z3dsx.zcci, .zcia, .z3ds, .zcxi, .z3dsx, .cci, .cia, .3ds, .cxi, .3dsxNone (fixed)Nonez3ds_compressor
SwitchNintendo Switch dumps.nsp, .xci, .nsz, .xcz.nsz, .xcz, .nsp, .xciLayout + levelYes (prod.keys)nsz
CSOPSP / PS2 game images.iso, .cso, .zso, .dax.cso, .zso, .dax, .iso, .chdEffort preset (Fast/Default/Max); the cso_to_chd chain ignores it and uses chdman defaultsNonemaxcso (+ chdman for cso_to_chd)
Handheld ROMCartridge ROMs (Nintendo, Sega, and other 8/16-bit systems).gb, .gbc, .gba, .nds, .nes, .sfc, .smc, .z64, .n64, .v64, .sms, .md, .gen, .smd, .gg, .vb, .ws, .wsc, .ngp, .ngc, .lnx, .d64, .t64, .prg, .a26, .a78, .7z, .zip.7z, .zip, and the original ROMEffort preset (Fast/Default/Max)None7z (p7zip-full)
PS3 ISODecrypted PS3 disc / JB foldersa folder containing PS3_GAME/ (plus PS3_DISC.SFB for disc rips).iso (optional 4 GB FAT32 split)None (fixed)Nonemakeps3iso
Wii UWii U disc images.wud, .wux.wux, .wudNone (fixed); a verify-after-conversion toggleNoneJWUDTool (Java)
NKitNKit-shrunk GameCube / Wii discs.nkit.iso, .nkit.gcz.iso, .rvz (via the nkit_to_rvz chain)None (fixed)Nonenkit2iso (+ dolphin-tool for nkit_to_rvz)
XboxXbox / Xbox 360 disc images.iso (only images holding an Xbox filesystem).xiso.isoNone (fixed)Noneextract-xiso
rom-convertoXbox 360 disc images for Xenia; PSP PBPs; 3DS CIA and CCI.iso, .xiso.iso (only images holding an Xbox 360 filesystem), .pbp (PSP games only), .cia, .cci, .3ds.zar, .iso, .cci, .ciaNone (fixed)None (keys built into rom-converto; the app never downloads or ships any)rom-converto v0.24.0
eXoDOSeXoDOS DOS game zips, for RomM.zip (only zips holding one game folder with a template in EXODOS_DOS_DIR).doszNone (fixed)Your own eXoDOS !dos folder (EXODOS_DOS_DIR)none (built in)
RAR setsMulti-part RAR sets (usenet downloads), RAR4 and RAR5the set's first volume: .rar (with .r00, .r01, …) or .part01.rar (with .part02.rar, …)the one file inside the set, under its own nameNone (fixed)Noneunar

Most conversions above are lossless and fully reversible, including 3DS, which now decompresses back to the original ROM as well. This uses z3ds_compress⁠ (a fork that adds a decompression mode and .cxi/.3dsx support to the original energeticokay/z3ds_compress⁠). The compressed .z3ds can be read directly by Azahar, or restored to .cci/.cia/.3ds with z3ds_decompress; see Nintendo 3DS Support⁠.

PS3 ISO is the clearest exception to the round trip. It packs a decrypted PS3 folder into a .iso that RPCS3 mounts directly; there is no reverse mode back to a folder, and it never deletes the source. See PlayStation 3 Support⁠.

ZAR is the other one-way format. A ZAR holds an Xbox 360 game's files, not the disc, and nothing turns it back into an ISO, so the ZAR mode never deletes its source and says why. See Xbox 360 ZAR Support⁠.

The CSO tool also has a one-step chain, cso_to_chd, that runs a .cso/.zso/.dax through maxcso to a temporary .iso and then chdman to a .chd in a single job. The disc image survives losslessly, but this one changes container: extracting the resulting .chd gives you an .iso, not the original .cso/.zso/.dax, so delete-on-verify here trades the compressed source for a CHD. See PSP / PS2 Support⁠.

NKit is one-directional for the opposite reason: this app never writes NKit, it only restores it. nkit_restore rebuilds the original .iso — bit-exact and CRC32-verified, except for a Wii image missing its update partition (see NKit Support⁠) — which you can then hand to Dolphin or CHDMAN like any other disc image — or use the one-step nkit_to_rvz chain, which restores and compresses to RVZ in a single job so the full-size ISO never lands in your library. See NKit Support⁠.

Archive inputs: most input formats above can be converted straight from inside a ZIP, 7z, or RAR archive, including 3DS ROMs, Dolphin game images, Switch dumps, and Wii U images. Browse into the archive, pick a member, and convert. This even covers CHDMAN's extract modes pulling a .chd out of an archive and decompressing it back to a game image. A few exceptions: CHDMAN's copy/recompress mode is not offered from an archive (recompressing an already-finished .chd would be a pointless round trip); Handheld ROM does not accept loose ROMs from inside an archive — its .7z/.zip are the packed product, so to unpack one select the archive file itself and run romz_extract, rather than browsing into it for a member; and PS3 ISO takes a folder, not a file, so it is never an archive input (a zipped PS3_GAME tree can't be converted from inside an archive). Each tool's full mode list (e.g. CHDMAN's createcd/extractcd, CSO's cso2_compress, the ROM packer's romz_7z/romz_zip/romz_extract, the PS3 packer's folder_to_iso, and NKit's nkit_restore/nkit_to_rvz) is in Supported Operations⁠.

Archive inputs: most input formats above can be converted straight from inside a ZIP, 7z, or RAR archive, including 3DS ROMs, Dolphin game images, Switch dumps, and NKit images. Browse into the archive, pick a member, and convert. This even covers CHDMAN's extract modes pulling a .chd out of an archive and decompressing it back to a game image. A few exceptions: CHDMAN's copy/recompress mode is not offered from an archive (recompressing an already-finished .chd would be a pointless round trip); Handheld ROM does not accept loose ROMs from inside an archive — its .7z/.zip are the packed product, so to unpack one select the archive file itself and run romz_extract, rather than browsing into it for a member; and PS3 ISO takes a folder, not a file, so it is never an archive input (a zipped PS3_GAME tree can't be converted from inside an archive).

⁠MAME Redump DAT Integration

Compressatorium can sync MAME Redump⁠ DAT files (Logiqx XML) in one click and check your compressed files against known-good Redump hashes. The same hashes let tools like Hasheous⁠ and RomM⁠ match your library.

  • One-click sync: Click "Sync from MAME Redump" in the DAT panel to download all ~69 DATs automatically from GitHub
  • Auto-sync: Set MAMEREDUMP_AUTO_SYNC=true to sync DATs on container startup when none are loaded
  • CHD files: Matched via the embedded header / data SHA1 (codec-independent, works with any compression setting on chdman 0.285)
  • Dolphin RVZ/WIA/GCZ: Matched via the game image's content SHA1 reconstructed by dolphin-tool verify — the same hash MAME Redump records for GameCube/Wii discs — so compressed Dolphin outputs match without the container bytes having to be identical
  • Everything else (3DS/Switch/CSO·ZSO·DAX/.iso/.bin): Matched via file-level SHA1
  • Library scan: The background scan discovers and DAT-matches tool outputs by extension (CHD, Dolphin RVZ/WIA/GCZ, 3DS, Switch, CSO/ZSO, .iso, and the .bin data track from CHDMAN extract), not just CHDs, so non-CHD libraries get cached match results too. A single PS3-packed .iso is matched like any other .iso; a 4 GB split set is not, since its .iso.0/.iso.1 parts aren't scanned extensions. Heavy Dolphin disc-hashing during the scan honors MATCH_MAX_FILE_SIZE and stops promptly if you cancel the scan.
  • DAT management: Import, list, and delete DATs via the web UI "DAT Files" button
  • Match badges: Files matching a DAT entry show a blue "DAT" badge in the file list
  • Wider coverage without curating DATs: see Hasheous Integration⁠ to fall back on 14 preservation databases for anything your imported DATs don't recognise
⁠Hasheous Integration (optional)

Hasheous⁠ is a hosted hash-lookup service run by the Gaseous⁠ project. It indexes 14 preservation databases and answers "what game is this hash?" for all of them at once. Turn it on and every hash your imported DATs don't recognise is looked up there, so your library gets identified without you curating DATs for every system you own.

Setup is one click. Open DAT Library in the web UI and press Turn on in the Hasheous panel. It takes effect immediately — no restart, no editing docker-compose.yml — and the choice is saved, so it survives restarts. A Test button next to it confirms the server is reachable and reports the round-trip time.

No account, no API key, no signup — the hash-lookup endpoint is public.

If you'd rather set it declaratively (a fresh container that should come up with it already on), the environment variable does the same thing — but it has to reach the process, so put it where the process will actually see it.

In docker-compose.yml, add it to the service's environment: list. That list is enumerated rather than inherited, so a value in your shell or in a .env file will not reach the container on its own:

    environment:
      - COMPRESSATORIUM_HASHEOUS_ENABLED=true

Running from a checkout, export it (or prefix the command) so the child process inherits it — a bare assignment on its own line sets a shell variable and launches nothing:

COMPRESSATORIUM_HASHEOUS_ENABLED=true ./run_dev.sh
# or, for the whole shell session:
export COMPRESSATORIUM_HASHEOUS_ENABLED=true

The UI toggle wins over the variable when both are set, and the panel tells you when that's the case.

⁠What it covers

Redump · No-Intro · TOSEC · MAMERedump · MAMEArcade · MAMEMess · WHDLoad · RetroAchievements · FBNeo · PureDOSDAT · Pleasuredome · TotalDOSCollection · eXo · ScreenScraper

Because MAMERedump is among them, Hasheous is a strict superset of the DATs the one-click sync pulls — including the CHD header hashes that only MAMERedump records. Nothing you get today is lost by enabling it.

⁠What you get per match

A local DAT hit tells you the game name and the ROM filename. A Hasheous hit carries considerably more. Everything except the link URLs is shown in the file-list badge tooltip; the tooltip names which databases list the game, and the URLs themselves are stored with the match and returned by the API:

FieldExample
Game nameJumpman Junior
ROM nameJumpman Junior (1983)(Epyx).bin
Source DATRedump / No-Intro / TOSEC / MAMERedump … — which database actually knew the hash
PlatformCommodore 64
PublisherEpyx
Year1983
RegionUS, EU, … (when the source records it)
Metadata linksIGDB, TheGamesDB, RetroAchievements, Wikipedia, LaunchBox, SteamGridDB

The links are IDs and URLs into those databases, so a match is a jumping-off point for artwork or achievements even though Compressatorium doesn't fetch them itself (see What it deliberately does not do⁠). The file list shows which of those databases list the game; the URLs are in the match payload from /api/dat/matches/lookup rather than being clickable in the row, since the badge tooltip is a native one and can't hold anchors.

⁠How a file gets matched

The order is fixed, and local always wins:

  1. Your imported DATs, using every hash the file can offer. A CHD reports both its header SHA1 and its data SHA1; a Dolphin RVZ/WIA/GCZ reports the reconstructed disc SHA1. All of them are checked locally first.
  2. Hasheous, only if none of them matched, and only if you enabled it.

So a library your own DATs already cover never makes a single network call, and a file your DATs can identify is never disclosed to a third party. Matching is also deterministic: the same file resolves the same way whether or not the network is healthy.

One exception, if you set MATCH_MAX_FILE_SIZE: a file over that cap is never read, so its file-level hash cannot be computed or checked locally at all. Such a file still gets looked up on whatever hashes it can offer for free (a CHD's header and data SHA1s), because the cap means "don't read this file", not "don't identify it". Leaving the cap unset restores the ordinary order for those files — their own SHA1 is computed and checked against your DATs before anything is sent — but it is not a way to keep large files off the network: if your DATs don't know the file, its hashes still go to Hasheous like any other. There is no size-based opt-out; the controls that actually stop a disclosure are turning the fallback off, or pointing COMPRESSATORIUM_HASHEOUS_URL at your own instance.

Results are cached in the local database, so a file is looked up once, not once per browse. If you enable Hasheous after files were already recorded as "no match", those old verdicts are automatically re-checked against the new source as you browse those files — the cached verdict records which source produced it, so it stops being accepted the moment a stronger one is available. Re-checking is lazy, not a library-wide sweep: a folder you never open keeps its old verdict until you open it, or until you run a rescan.

⁠Badges
BadgeMeaning
DAT (blue)Matched one of your imported DATs
HASHMatched via Hasheous — hover for platform, year, region and source DAT
⁠Privacy

Enabling this sends the SHA1 of your files (and nothing else — no filenames, no paths, no account identifier) to whatever server COMPRESSATORIUM_HASHEOUS_URL points at. That is why it ships off, and why nothing is transmitted at all until you enable it — either with the toggle in the DAT Library or by setting the variable. Requests are HTTPS-only, and a redirect that would downgrade to plain HTTP is refused rather than followed.

If you'd rather not talk to a third party at all, Hasheous is open source and self-hostable — point the URL at your own instance and lookups stay on your network.

⁠Behaviour when Hasheous is unreachable

A failed lookup is reported as an error, never recorded as "not in any DAT". A network blip therefore can't permanently mark your library unmatched; the affected files are simply retried next time.

To keep an outage cheap, the client stops calling out for 60 seconds after a failure. Without that, a 1,000-file scan against a dead endpoint would spend over four hours re-learning the same fact once per file.

A metadata scan that ran while Hasheous was unreachable says so on its final line — … 12 not checked (Hasheous unreachable). The scan itself still succeeds, because the metadata it collects is unaffected; without that count a rescan during an outage would finish looking like a clean "nothing matched". Those files are retried the next time you browse or rescan them.

⁠Configuration
VariableDefaultPurpose
COMPRESSATORIUM_HASHEOUS_ENABLEDfalseStarting state of the master switch. The DAT Library toggle overrides it and persists.
COMPRESSATORIUM_HASHEOUS_URLhttps://hasheous.orgPoint at your own instance. Must be https.
COMPRESSATORIUM_HASHEOUS_TIMEOUT15Whole-request timeout in seconds, from the TCP connect to the last byte: every address the host resolves to (one budget between them, not one each), a proxy CONNECT tunnel, headers and body. Not per socket read, so a server or proxy dripping the response a byte at a time can't stall a scan. Two things sit outside the budget: name resolution — getaddrinfo runs before any socket exists, so a stalled resolver is bounded by /etc/resolv.conf instead — and a dripping TLS handshake, which gets the remaining budget as its socket timeout (a peer that stalls or dies mid-handshake is bounded) but not a per-record deadline, so a peer trickling handshake records can outlast it. Both raise eventually, and the 60s cooldown then opens. This call sits in the file-browse path, so keep it short.

Legacy short names (HASHEOUS_ENABLED, HASHEOUS_URL, HASHEOUS_TIMEOUT) are accepted as aliases.

The DAT Library page shows the live state — on or off, which server it is pointed at, whether the setting came from the toggle or the environment, and a Test button that reports reachability and latency.

Changing COMPRESSATORIUM_HASHEOUS_URL re-checks previously-unmatched files against the new server automatically — cached "no match" verdicts record which server produced them, so pointing at a different instance doesn't leave you with stale answers.

⁠Scale

Hasheous has no bulk endpoint — its API accepts several hashes for one file, not a batch of files — so an uncached library costs at least one request per file.

A file that matches on its first candidate costs one request. Anything else costs more, because candidates are tried in order and each one is a request: a CHD offers a header SHA1 and a data SHA1, and since a CHD's own container bytes may also be indexed, a miss on both falls back to a file-level SHA1 — up to three requests, and three hashes disclosed, for one CHD. That ceiling applies whether the CHD ends up matching on a later candidate or not; a match only stops the requests that would have come after it. Formats with a single hash (ISO, 3DS, Switch, CSO) cost one either way. Dolphin RVZ/WIA/GCZ report one exhaustive disc hash, so they cost one and never fall back.

Responses are cached both locally and by Hasheous' CDN, so this is a one-time cost per file rather than a per-browse one. If you have a large uncached library, run the background library scan once and let it prime the cache rather than browsing folder by folder.

Importing a DAT, or syncing MAMERedump, does not re-send anything. The re-match those trigger runs against your local DATs only. A file the new DATs now identify has its badge upgraded from HASH to DAT; a file they still don't cover keeps the badge it already had. Nothing goes back out over the network, so a sync costs zero requests no matter how large your library is.

The one exception is a file that was previously recorded as no match anywhere. Those verdicts are dropped by the import (a new DAT can turn a miss into a hit), so the next time you browse such a file it is re-checked — locally first, then remotely if the local DATs still don't know it. That is one request at the moment you look at the file, not a burst of thousands at sync time.

⁠What it deliberately does not do
  • No cover art or descriptions. Hasheous proxies IGDB, TheGamesDB, GiantBomb and ScreenScraper, but those endpoints require a Hasheous client API key. Only the key-free hash lookup is used here. The metadata links above give you the IDs if you want to fetch artwork yourself.
  • No submissions. Hasheous accepts hash corrections and dump reports; those endpoints also need an API key, and are not called.
  • Nothing is uploaded about your library. Lookups are reads. Your file names, paths, and collection contents are never sent.

⁠Installation

The Docker image is available from two registries:

⁠Docker Hub
docker pull pacnpal/compressatorium
⁠GitHub Container Registry
docker pull ghcr.io/pacnpal/compressatorium

Both registries provide identical images with multi-architecture support (linux/amd64 and linux/arm64).

Note: Use either registry: replace pacnpal/compressatorium with ghcr.io/pacnpal/compressatorium for the same image.

⁠Available Tags
TagDescription
latestLatest stable release
betaLatest pre-release build (see warning below)
X.Y.ZSpecific stable version (e.g., 3.7.0)
X.Y.Z-beta-NSpecific pre-release build (e.g., 3.7.0-beta-3)
sha-xxxxxxxSpecific commit build
⁠Opting in to beta updates

To track pre-release builds, pull the :beta tag instead of :latest:

docker pull pacnpal/compressatorium:beta

Or pin to a specific pre-release (recommended if you want to control when you upgrade):

docker pull pacnpal/compressatorium:3.7.0-beta-3

Warning: beta builds can cause data loss. Pre-releases may carry unfinished migrations, experimental conversion logic, or breaking changes to the job database. Running a beta against a database that a stable release created can corrupt it or migrate it past the point of return, and downgrading back to :latest afterwards is not supported. Before you pull :beta:

  • Back up your SQLite database (compressatorium.db in your data volume) and any in-flight output files.
  • Prefer a separate data volume for beta testing rather than pointing a beta container at your production volume.
  • Do not use beta builds for batches you cannot afford to redo.

⁠Quick Start Guide

⁠1. Select Your Primary Tool

When you open the Web UI, you'll see the tool options at the top:

  • CHDMAN - For converting CD/DVD/LaserDisc images to CHD format
  • Dolphin - For GameCube/Wii game image conversions
  • 3DS - For compressing Nintendo 3DS ROMs
  • Switch - For compressing/decompressing Nintendo Switch dumps (needs your own prod.keys)
  • CSO - For compressing/decompressing PSP/PS2 ISO images to CSO/ZSO (and a one-step CSO → CHD chain)
  • Handheld ROM - For compressing/extracting cartridge ROM dumps to .7z/.zip archives (Gam
Tag summary
Recent tags
Content type
Image
Digest
sha256:76554baf2…
Size
476.2 MB
Last updated
16 days ago
docker pull pacnpal/compressatorium:latest