Repository navigation
Ghostscript Install EN
zipax-bot edited this page Aug 11, 2026
·
1 revision
PDF compression depends on the external program Ghostscript (gs). When zipax detects that Ghostscript is missing, it shows a global install banner at the top of the result list (introduced in v0.25.4, inline card in v0.25.5, global banner since v0.25.6 per the design spec).
- The
imagecrate cannot compress PDFs directly; zipax shells out to Ghostscript for PDF re-compression - PDF compression therefore requires a system-level Ghostscript install
| Platform | Method | Notes |
|---|---|---|
| macOS | Homebrew brew install ghostscript
|
Executed automatically by the install command |
| Windows | Official installer, silent install |
exe /S no UI |
| Linux | Package manager dependency | deb depends on ghostscript, handled by apt |
Note: Linux deb/rpm packages declare the
ghostscriptdependency inbundle.linux(tauri.conf.json), soapt installhandles it automatically.
- When PDF compression fails because Ghostscript is missing, a single global banner appears at the top of the result list (multiple failed PDFs still show only one banner):
- State machine:
idle → installing → installed → failed -
"Install" button → invokes the
installGhostscript()Tauri command - Spinner + status text while installing
- 800ms after success, all affected items are retried automatically
- On failure, the full error message (including manual install commands) is shown with a retry button
- State machine:
- All banner copy is i18n-ed (
home.gs*keys) - Visual spec follows the software-update prompt pattern (
.update-prompt)
Design spec: docs/design-spec-pdf-ghostscript-ux.md
| Location | File |
|---|---|
| Rust backend | zipax-cross/src-tauri/src/gs_install.rs |
| Command registration | zipax-cross/src-tauri/src/lib.rs |
| Frontend binding | zipax-cross/src/lib/tauri.ts |
| Global banner UI | zipax-cross/src/components/ManualCompressionParts.tsx |
| PRD | docs/prd-ghostscript-install.md |
Back to Home-EN · 中文版:Ghostscript 一键安装
Language / 语言:
- 简体中文 · English
- Home
- Tech-Stack
- Architecture
- Compression-Engine
- Features
- Build-and-Release
- CLI-Usage
- Ghostscript-Install
- Release-History
- Docs-Index
- Home-EN
- Tech-Stack-EN
- Architecture-EN
- Compression-Engine-EN
- Features-EN
- Build-and-Release-EN
- CLI-Usage-EN
- Ghostscript-Install-EN
- Release-History-EN
- Docs-Index-EN