A CLI tool (version 1.0.0) for Stable Diffusion WebUI to resize and convert model cover images (Extra-Networks showcase) to smaller WebP/PNG/JPEG formats, reducing size and speeding up rendering. Designed for use inside a Stable Diffusion WebUI installation directory. Supports covers for checkpoints, LoRAs, hypernetworks, and embeddings. Default output is 300x400 WebP images. Requires Node >=16.
npm install sd-webui-cover-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs globally, then runs in the SD WebUI directory to minify covers to 300x400 WebP images.
Manually backup the original covers directory before running, or use the --ckptPath, --loraPath, etc. options to point to a copy.
Check your SD WebUI's Extra-Networks directories (settings -> Extra Networks) and pass the corresponding --ckptPath etc.
Update Node.js to version 16 or later (e.g., using nvm).
Run 'npm install -g sd-webui-cover-minifier' again, or install sharp separately: 'npm install -g sharp'. On some systems, you may need to install build tools (e.g., libvips).
Install globally: npm install -g sd-webui-cover-minifier. Then ensure the npm global binaries path (typically 'npm root -g' output) is in your PATH.
Verify your SD WebUI's cover directories. Use --ckptPath, --loraPath, etc. to specify correct paths. Example: --ckptPath /path/to/models/Stable-diffusion