Token导航 LogoToken导航TokenDH.com
开发external-serviceclawhub未标认证来源可访问clear审计提醒

dpi-upscaler-checkerdpi 放大检查器

Agent Skill

dpi-upscaler-checker 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,639

周安装

266

GitHub Stars

公开资料未说明

下载量

2,149
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dpi-upscaler-checker(dpi 放大检查器)
来源仓库:https://github.com/aipoch-ai/dpi-upscaler-checker
安装命令:
openclaw skills install dpi-upscaler-checker
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install dpi-upscaler-checker

简介

检测图像 DPI 并智能提升低分辨率画质。

  • 适用于图片修复与打印质量优化场景。dpi-upscaler-checker 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 自动识别输入图像并应用超分算法增强细节。
  • 输出结果可能存在伪影,需人工二次确认。
  • 建议保留原始文件以备后续对比使用。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
dpi-upscaler-checker
description
Check image DPI and intelligently upscale low-resolution images using
version
1.0.0
category
Visual
tags
author
AIPOCH
license
MIT
status
Draft
risk_level
Medium
skill_type
Tool/Script
owner
AIPOCH
reviewer
last_updated
2026-02-06

DPI Upscaler & Checker

Check if images meet 300 DPI printing standards, and intelligently restore blurry low-resolution images using AI super-resolution technology.

Features

  • DPI Detection: Read and verify image DPI information
  • Intelligent Analysis: Calculate actual print size and pixel density
  • Super-Resolution Restoration: Use Real-ESRGAN algorithm to enhance image clarity
  • Batch Processing: Support single image and batch folder processing
  • Format Support: JPG, PNG, TIFF, BMP, WebP

Use Cases

  • Academic paper figure DPI checking
  • Print image quality pre-inspection
  • Low-resolution material restoration
  • Document scan enhancement

Usage

Check Single Image DPI

python scripts/main.py check --input image.jpg

Batch Check Folder

python scripts/main.py check --input ./images/ --output report.json

Super-Resolution Restoration

python scripts/main.py upscale --input image.jpg --output upscaled.jpg --scale 4

Batch Fix Low DPI Images

python scripts/main.py upscale --input ./images/ --output ./output/ --min-dpi 300 --scale 2

Parameters

Check Command

ParameterTypeDefaultRequiredDescription
--inputstring-YesInput image path or folder
--outputstringstdoutNoOutput report path
--target-dpiint300NoTarget DPI threshold

Upscale Command

ParameterTypeDefaultRequiredDescription
--inputstring-YesInput image path or folder
--outputstring-YesOutput path
--scaleint2NoScale factor (2/3/4)
--min-dpiint-NoOnly process images below this DPI
--denoiseint0NoDenoise level (0-3)
--face-enhanceflagfalseNoEnable face enhancement

Output Description

DPI Check Report

{
  "file": "image.jpg",
  "dpi": [72, 72],
  "width_px": 1920,
  "height_px": 1080,
  "print_width_cm": 67.7,
  "print_height_cm": 38.1,
  "meets_300dpi": false,
  "recommended_scale": 4.17
}

Restored Image

  • Automatically saved as <original_filename>_upscaled.<extension>
  • Preserves original EXIF information
  • Sets DPI to 300

Dependencies

  • Python >= 3.8
  • Pillow >= 9.0.0
  • opencv-python >= 4.5.0
  • numpy >= 1.21.0
  • realesrgan (optional, for best results)

Algorithm Description

DPI Calculation

Actual DPI = Pixel dimensions / Physical dimensions
Print size (cm) = Pixel count / DPI * 2.54

Super-Resolution

  • Default use of Real-ESRGAN model
  • Support lightweight bicubic interpolation fallback
  • Intelligent model selection (general/anime/face)

Notes

  1. Input image DPI information may be inaccurate; actual pixel calculation shall prevail
  2. Super-resolution cannot create non-existent information; extremely blurry images have limited improvement
  3. Large file processing requires more memory
  4. GPU acceleration requires CUDA environment (optional)

Risk Assessment

Risk IndicatorAssessmentLevel
Code ExecutionPython/R scripts executed locallyMedium
Network AccessNo external API callsLow
File System AccessRead input files, write output filesMedium
Instruction TamperingStandard prompt guidelinesLow
Data ExposureOutput files saved to workspaceLow

Security Checklist

  • [ ] No hardcoded credentials or API keys
  • [ ] No unauthorized file system access (../)
  • [ ] Output does not expose sensitive information
  • [ ] Prompt injection protections in place
  • [ ] Input file paths validated (no ../ traversal)
  • [ ] Output directory restricted to workspace
  • [ ] Script execution in sandboxed environment
  • [ ] Error messages sanitized (no stack traces exposed)
  • [ ] Dependencies audited

Prerequisites

# Python dependencies
pip install -r requirements.txt

Evaluation Criteria

Success Metrics

  • [ ] Successfully executes main functionality
  • [ ] Output meets quality standards
  • [ ] Handles edge cases gracefully
  • [ ] Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:

- Performance optimization - Additional feature support

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.44%
按下载量换算1,664

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills