Use when "improving image quality", "enhancing screenshots", "upscaling images", "sharpening photos", or asking about "image optimization", "screenshot quality", "resolution improvement"
Enhances images by improving quality, sharpening, upscaling, and optimizing for specific use cases.
/plugin marketplace add eyadsibai/ltk/plugin install ltk@ltk-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Improve image quality for documentation, presentations, and social media.
from PIL import Image, ImageEnhance, ImageFilter
def enhance_image(input_path, output_path):
img = Image.open(input_path)
# Upscale if small
if img.width < 1920:
scale = 1920 / img.width
new_size = (int(img.width * scale), int(img.height * scale))
img = img.resize(new_size, Image.LANCZOS)
# Sharpen
img = img.filter(ImageFilter.SHARPEN)
# Enhance contrast slightly
enhancer = ImageEnhance.Contrast(img)
img = enhancer.enhance(1.1)
img.save(output_path, quality=95)
return img.size
# Usage
enhance_image('screenshot.png', 'screenshot-enhanced.png')
# Sharpen image
convert input.png -sharpen 0x1 output.png
# Upscale 2x with good quality
convert input.png -resize 200% -filter Lanczos output.png
# Remove compression artifacts
convert input.jpg -enhance output.jpg
# Batch process folder
for f in *.png; do
convert "$f" -sharpen 0x1 "enhanced-$f"
done
| Use Case | Resolution | Format | Quality |
|---|---|---|---|
| Web/Blog | 1920px wide | PNG/WebP | 85-95% |
| Social Media | Platform-specific | JPG | 90% |
| Presentations | 2560px+ | PNG | 95% |
| 300 DPI minimum | PNG/TIFF | 100% |
| Platform | Recommended Size |
|---|---|
| 1200x675 | |
| 1200x627 | |
| 1080x1080 | |
| 1200x630 |
# Python
pip install Pillow
# ImageMagick
sudo apt-get install imagemagick
# For advanced upscaling
pip install opencv-python
This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.