Agent skill

Dpi Upscaler Checker

by aipoch in aipoch/medical-research-skills

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

MITAuto-check passedMedia & Creative

Install Dpi Upscaler Checker

skills CLI
$ npx skills add aipoch/medical-research-skills --skill dpi-upscaler-checker -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills dpi-upscaler-checker --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/scientific-skills/Other/dpi-upscaler-checker .claude/skills/dpi-upscaler-checker && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dpi-upscaler-checker
GitHub stars
1.9k
Token cost
~1.6k tokens
SKILL.md length
664 words
Files
4 (incl. scripts)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 5 steps: Validate input first — confirm the… → Confirm the user objective, required… → Use the packaged script path or the… → …
  • Media & Creative work in your project
  • SKILL.md covers Input Validation, When to Use, Quick Check and Workflow, plus 9 more sections
  • Runs Python scripts from its folder; calls python

What it does

Dpi Upscaler Checker is an agent skill from aipoch/medical-research-skills. Check if images meet 300 DPI printing standards, and intelligently restore blurry low-resolution images using AI super-resolution technology.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `dpi-upscaler-checker_audit_result_v4.json` and `scripts/main.py`).

It sits in Media & Creative. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Media & Creative work in your project

Example prompts

  • “/dpi-upscaler-checker”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Validate input first — confirm the request is within scope and --input path is provided before any processing.
  2. Confirm the user objective, required inputs, and non-negotiable constraints.
  3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
  4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
  5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dpi Upscaler Checker loads about 1.6k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 664 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 664 words, ~1,608 tokens.

Download SKILL.mdSave it as .claude/skills/dpi-upscaler-checker/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
dpi-upscaler-checker
description
Check if images meet 300 DPI printing standards, and intelligently restore blurry low-resolution images using AI super-resolution technology.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

DPI Upscaler & Checker

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

Input Validation

This skill accepts: image files (JPG, PNG, TIFF, BMP, WebP) or folder paths for DPI checking and/or AI super-resolution upscaling.

If the user's request does not involve image DPI checking or upscaling — for example, asking to analyze text documents, process audio files, or perform general data analysis — do not proceed with the workflow. Instead respond:

"dpi-upscaler-checker is designed to check image DPI standards and restore low-resolution images. Your request appears to be outside this scope. Please provide an image file path or folder, or use a more appropriate tool for your task."

Do not continue the workflow when the request is out of scope, missing a critical input (--input path), or would require unsupported assumptions. For missing inputs, state exactly which fields are missing.

When to Use

  • Check whether images meet 300 DPI printing standards
  • Upscale or restore low-resolution images using AI super-resolution
  • Batch-process folders of mixed-DPI images for print readiness

Quick Check

bash
python -m py_compile scripts/main.py
python scripts/main.py --help
python scripts/main.py --demo
python -c "import PIL; print('Pillow OK')"
python scripts/main.py check --input image.jpg --json

Workflow

  1. Validate input first — confirm the request is within scope and --input path is provided before any processing.
  2. Confirm the user objective, required inputs, and non-negotiable constraints.
  3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
  4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
  5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.

Usage

Check Single Image DPI
text
python scripts/main.py check --input image.jpg
python scripts/main.py check --input image.jpg --json        # JSON to stdout for agent consumption
Batch Check Folder
text
python scripts/main.py check --input ./images/ --output report.json
Super-Resolution Restoration
text
python scripts/main.py upscale --input image.jpg --output upscaled.jpg --scale 4
Batch Fix Low DPI Images
text
python scripts/main.py upscale --input ./images/ --output ./output/ --min-dpi 300 --scale 2
Demo Mode (no real images required)
text
python scripts/main.py --demo

Parameters

Check Command
ParameterTypeDefaultRequiredDescription
--inputstring-YesInput image path or folder
--outputstringstdoutNoOutput report path
--target-dpiint300NoTarget DPI threshold
--jsonflagfalseNoOutput results as JSON to stdout
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

DPI Check Report (JSON)
json
{
  "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
  • Saved as <original_filename>_upscaled.<extension>
  • Preserves original EXIF information
  • Sets DPI metadata to target value
Show full SKILL.md (274 more words)Show less

Algorithm

  • DPI: print_size_cm = (pixel_count / dpi) * 2.54; recommended_scale = target_dpi / avg_dpi
  • Super-resolution fallback chain: Real-ESRGAN → OpenCV DNN → PIL Lanczos
  • RGBA alpha channel upscaled separately and reattached

Known Limitations

  • Super-resolution cannot create non-existent information; extremely blurry images have limited improvement
  • GPU acceleration requires CUDA environment (optional)
  • Batch upscale mode does not currently save a JSON summary report (only check mode saves JSON to --output)
  • EXIF parsing uses except (AttributeError, KeyError, TypeError, ZeroDivisionError) — bare except replaced with specific exception types
  • Output format parameters are conditioned on file extension (JPEG: quality=95; PNG: compress_level=6)
  • Batch processing uses Path.rglob; resolve paths with path.resolve() before processing to avoid unexpected directory traversal via symlinks

Fallback Behavior

If scripts/main.py fails or required inputs are incomplete:

  1. Report the exact failure point and error message (sanitized — no internal paths).
  2. State what can still be completed safely (e.g., DPI check without upscale).
  3. Manual fallback: from PIL import Image; img = Image.open('file.jpg'); print(img.info.get('dpi')).
  4. Do not fabricate execution outcomes or file contents.

Error Handling

  • If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
  • If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
  • If scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
  • Do not fabricate files, citations, data, search results, or execution outcomes.
  • Script exits with non-zero code on error in both check and upscale modes.

Response Template

  1. Objective
  2. Inputs Received
  3. Assumptions
  4. Workflow
  5. Deliverable
  6. Risks and Limits
  7. Next Checks

Dependencies

  • Python >= 3.8
  • Pillow >= 9.0.0
  • opencv-python >= 4.5.0
  • numpy >= 1.21.0
  • realesrgan (optional, for best results)
text
pip install -r requirements.txt

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in scientific-skills/Other/dpi-upscaler-checker of aipoch/medical-research-skills.

  • SKILL.md
  • dpi-upscaler-checker_audit_result_v4.json
  • requirements.txt
  • scripts/main.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Dpi Upscaler Checker next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dpi Upscaler Checker compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dpi Upscaler Checker this skillaipoch/medical-research-skills1.9k—~1.6kAutomated safety check: PassMIT
Guizang Social Cardsop7418/guizang-social-card-skill7.4k1 repos~7.8kAutomated safety check: PassAGPL-3.0
Weekly Changelog Videoheygen-com/hyperframes60k—~3.3kAutomated safety check: PassApache-2.0
Anthropic Brand Stylinganthropics/skills180k30 repos~559Automated safety check: PassApache-2.0
MoneyPrinterTurbo Video Generatorharry0703/MoneyPrinterTurbo129k—~2.1kAutomated safety check: WarnMIT
HyperFrames Media Useheygen-com/hyperframes60k—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • Guizang Social Cards

    op7418/guizang-social-card-skill

    Produces social card sets for Xiaohongshu and WeChat: carousels, Live Photo motion cards and puzzle layouts, and WeChat cover pairs, rendered from single-file HTML.

    7.4k GitHub starsUsed in 1 repo~7.8k tokens
    Media & CreativeAuto-check passed
  • Weekly Changelog Video

    heygen-com/hyperframes

    Turns a weekly changelog markdown file into a branded HyperFrames video with voiceover, animated mock-UI scenes and captions, using fonts, background and scripts bundled in the skill.

    60k GitHub stars~3.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • Anthropic Brand Styling

    anthropics/skills

    Official

    Applies Anthropic's brand colors and fonts to artifacts such as PowerPoint slides, using fixed hex values for text and accents, Poppins headings and Lora body text.

    180k GitHub starsUsed in 30 repos~559 tokens
    Media & CreativeAuto-check passed
  • MoneyPrinterTurbo Video Generator

    harry0703/MoneyPrinterTurbo

    Installs and runs MoneyPrinterTurbo to turn a topic or script into a finished short video with voice-over, subtitles, stock footage and music.

    129k GitHub stars~2.1k tokensUpdated today
    Media & CreativeAuto-check: warnings
  • HyperFrames Media Use

    heygen-com/hyperframes

    Finds, generates and edits media for HyperFrames video projects: music, sound effects, images, icons, logos, voiceovers, captions and color grades.

    60k GitHub stars~2.4k tokensUpdated today
    Media & CreativeAuto-check passed
  • Holo Card Studio

    EverettFish/holo-card-studio

    Create collectible holographic foil cards and two-image lenticular flip cards with AI-generated full-color ukiyo-e and colored sumi-e anime artwork, layered Blender scenes, renders, GLB export, and…

    1.9k GitHub stars~1.4k tokensUpdated 18 days ago
    Media & CreativeAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 23 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 23 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 23 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 23 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 23 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 23 days ago
    Auto-check passed

Questions about Dpi Upscaler Checker

What does Dpi Upscaler Checker do?

Check if images meet 300 DPI printing standards, and intelligently restore blurry low-resolution images using AI super-resolution technology. Dpi Upscaler Checker is an agent skill from aipoch/medical-research-skills. Check if images meet 300 DPI printing standards, and intelligently restore blurry low-resolution images using AI super-resolution technology.

When should I use Dpi Upscaler Checker?

Dpi Upscaler Checker fits situations like: media & Creative work in your project.

How do I install Dpi Upscaler Checker in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill dpi-upscaler-checker -a claude-code`. Or copy the skill folder (scientific-skills/Other/dpi-upscaler-checker in aipoch/medical-research-skills) into .claude/skills/dpi-upscaler-checker in your project. Claude Code loads it when a task matches its description.

How do I install Dpi Upscaler Checker in Codex?

Run `npx skills add aipoch/medical-research-skills --skill dpi-upscaler-checker -a codex`. Or copy the skill folder (scientific-skills/Other/dpi-upscaler-checker in aipoch/medical-research-skills) into .agents/skills/dpi-upscaler-checker in your project. Codex loads it when a task matches its description.

Can I use Dpi Upscaler Checker in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill dpi-upscaler-checker -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dpi-upscaler-checker, .gemini/skills/dpi-upscaler-checker, .github/skills/dpi-upscaler-checker and .opencode/skills/dpi-upscaler-checker in your project.

What does Dpi Upscaler Checker need to run?

Going by SKILL.md and its folder, Dpi Upscaler Checker needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Dpi Upscaler Checker access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dpi Upscaler Checker safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Dpi Upscaler Checker use?

Dpi Upscaler Checker is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dpi Upscaler Checker use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dpi Upscaler Checker?

Skills that share tags, products or a category with Dpi Upscaler Checker: Guizang Social Cards (op7418/guizang-social-card-skill, 7.4k stars), Weekly Changelog Video (heygen-com/hyperframes, 60k stars), Anthropic Brand Styling (anthropics/skills, 180k stars) and MoneyPrinterTurbo Video Generator (harry0703/MoneyPrinterTurbo, 129k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dpi Upscaler Checker?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.