Pixeldetector
Downscale and restore pixel art images that have been resized or corrupted.
Install / Use
/learn @Astropulse/PixeldetectorREADME
Pixel Detector
Downscale and restore pixel art images that have been resized or corrupted.
This is primarily created to fix compression issues from saving pixel art in jpg format.
Built into Aseprite with Retro Diffusion pixel art generator (Edit -> FX -> Repair pixel art): https://astropulse.gumroad.com/l/RetroDiffusion
Exaggerated example:
Usage
Requirements: Pillow, Numpy, Scipy
Run pixeldetector.py
Arguments:
-i --input: Expects string, Path to input image
-o --output: Expects string, Path to save output image, default = output.png
-m --max: Expects int, Max colors for computation, more = slower, default = 128
-p --palette: Expects none, Automatically reduce the image to predicted color palette
Credits
Big thanks to https://github.com/paultron for numpy-ifying the downscale calculation and making it tons faster.
Test image by Skeddles https://lospec.com/gallery/skeddles/rock-and-grass
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
