Registry / storage / sd-webui-cover-minifier

sd-webui-cover-minifier

JSON →
library1.0.0jsnpmunverified

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-minifier
INSTALL
IMPORT
SIG · SD-WEBUI-COVER-MIN
S
sd-webui-cover-minifier
storagejavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cover-minifier (CLI)
npm install -g sd-webui-cover-minifier
npm install sd-webui-cover-minifier (missing -g for global CLI usage)
Tool is used as a CLI command 'cover-minifier' after global install. It is not a JavaScript library import.

Installs globally, then runs in the SD WebUI directory to minify covers to 300x400 WebP images.

cd /path/to/stable-diffusion-webui cover-minifier -w 300 -h 400 -t webp
Debug
Known issues
gotchaRunning cover-minifier without arguments will overwrite original cover files with resized versions. There is no backup created by default.
fix
Manually backup the original covers directory before running, or use the --ckptPath, --loraPath, etc. options to point to a copy.
affects: >=1.0.0
gotchaThe tool looks for images in subdirectories of the given paths. If your Extra-Networks covers are stored in a non-standard location, you must specify the correct paths via command-line options; otherwise, it may skip all files.
fix
Check your SD WebUI's Extra-Networks directories (settings -> Extra Networks) and pass the corresponding --ckptPath etc.
affects: >=1.0.0
gotchaNode.js version must be >= 16. If you run an older Node version, the installation may fail or the script may throw errors.
fix
Update Node.js to version 16 or later (e.g., using nvm).
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'sharp'
Sharp native module failed to install or is missing.
fix
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).
cover-minifier: command not found
The package is not installed globally, or the node bin directory is not in PATH.
fix
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.
No images found in the specified directories.
The tool searched the default directories but they do not contain cover images, or the paths are incorrect.
fix
Verify your SD WebUI's cover directories. Use --ckptPath, --loraPath, etc. to specify correct paths. Example: --ckptPath /path/to/models/Stable-diffusion
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
sharprequiredimage processing (resize, convert format)
Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
sd-webui-cover-minifier — npm install sd-webui-cover-minifier · libregistry