image-enhancement
Use when "improving image quality", "enhancing screenshots", "upscaling images", "sharpening photos", or asking about "image optimization", "screenshot quality", "resolution improvement"
How do I install this agent skill?
npx skills add https://github.com/eyadsibai/ltk --skill image-enhancementIs this agent skill safe to install?
- Gen Agent Trust Hubfail
The skill provides comprehensive guides and scripts for image enhancement. However, it includes instructions to install system-level software using administrative privileges (sudo), which is a high-risk security practice. Additionally, it processes external image files, which creates a potential surface for indirect prompt injection if those files contain malicious instructions.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
Image Enhancement Guide
Improve image quality for documentation, presentations, and social media.
When to Use
- Improving screenshot quality for blog posts
- Enhancing images for social media
- Preparing images for presentations
- Upscaling low-resolution images
- Sharpening blurry photos
- Cleaning up compressed images
Enhancement Workflow
- Analyze - Check resolution, sharpness, artifacts
- Enhance - Apply appropriate improvements
- Optimize - Adjust for intended use case
- Save - Preserve original, save enhanced version
Python Enhancement Script
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')
ImageMagick Commands
# 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
Optimization by Use Case
| 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% |
Social Media Sizes
| Platform | Recommended Size |
|---|---|
| 1200x675 | |
| 1200x627 | |
| 1080x1080 | |
| 1200x630 |
Tips
- Always keep original files as backup
- PNG for screenshots (lossless)
- JPG for photos (smaller size)
- WebP for web (best compression)
- Batch process for multiple files
Required Tools
# Python
pip install Pillow
# ImageMagick
sudo apt-get install imagemagick
# For advanced upscaling
pip install opencv-python
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/eyadsibai/ltk/image-enhancement">View image-enhancement on skillZs</a>