image-quality-enhancement

Assess image sharpness with Laplacian variance and upscale via Real-ESRGAN.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/worm-13/pet-design-agent --skill image-quality-enhancement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-quality-enhancement
Source: https://github.com/worm-13/pet-design-agent/tree/main/.cursor/skills/image-quality-enhancement
Command: npx skills add https://github.com/worm-13/pet-design-agent --skill image-quality-enhancement

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires replicate, opencv-python, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill helps users fix blurry or low-resolution images by automatically measuring sharpness and applying AI-based upscaling when needed.

Core Features & Use Cases

  • Sharpness assessment: uses a Laplacian variance metric to decide if enhancement is necessary.
  • AI upscaling with Real-ESRGAN: leverages Replicate to upscale images and improve detail.
  • Flexible inputs/outputs: accepts image URLs or local files and returns an enhanced image ready for design workflows.

Quick Start

Provide an image (URL or file) and the service will assess sharpness and upscale only when needed.

Frequently Asked Questions about image-quality-enhancement

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enhance blurry images and improve sharpness?

To enhance blurry images and improve sharpness, this skill uses a Laplacian variance metric to automatically assess image quality and applies AI upscaling with Real-ESRGAN via Replicate to restore detail.

How does Laplacian variance work for image quality assessment?

Laplacian variance works for image quality assessment by calculating the variance of the image's second derivative, providing a quantifiable sharpness metric to decide if AI upscaling is necessary for low-quality inputs.

Can I use Real-ESRGAN with Replicate to upscale low-resolution images?

Yes, you can use Real-ESRGAN with Replicate to upscale low-resolution images by providing a local file or URL, which the workflow processes to output an enhanced image ready for design workflows.

What's the best way to automate image enhancement for design workflows?

The best way to automate image enhancement for design workflows is using this script-based approach, which evaluates incoming image URLs or files and conditionally applies AI upscaling to output optimized assets automatically.

Do I need OpenCV to assess image sharpness before upscaling?

Yes, you need OpenCV to assess image sharpness before upscaling, as the workflow relies on opencv-python to compute the Laplacian variance metric that determines whether Real-ESRGAN enhancement is required.