Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

bt2020-png-generation

Skill by clshortfuse

Generates and validates BT.2020/BT.2100 HDR PNG files with PQ/ST 2084 encoding and native cICP signaling. It is for RenoDX developers who need repeatable HDR analysis images from EXR, linear RGB, or nits data.

  • Score 91
  • 4.9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install bt2020-png-generation

Built from the published package, never by AI.

git clone --depth 1 https://github.com/clshortfuse/renodx /tmp/renodx && mkdir -p ~/.claude/skills && cp -r /tmp/renodx/.agents/skills/bt2020-png-generation ~/.claude/skills/bt2020-png-generation

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install bt2020-png-generation in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a workflow guide for producing BT.2020 HDR PNG analysis artifacts in the RenoDX project. It walks the assistant through classifying the input, converting AP0/D60, ACEScg/AP1, or BT.709 data to BT.2020 D65 linear RGB, and mapping scene values to absolute nits with an explicit diffuse white and peak. It then covers PQ/ST 2084 encoding, writing 16-bit RGB PNG bytes with a cICP chunk, and validating the result with stats and a read-back check.

It also describes an optional HDR ICC mode for Discord preview and Chrome tests, where the ICC profile carries a cicpTag. The skill points to existing helper scripts under tools/analysis/ and a reusable Python template so developers avoid repeated one-off code. It is intended for RenoDX contributors who make HDR PNG test files.

Written from the project's SKILL.md and checked against it.

What it can do

  • Input classificationIdentifies the source data as EXR, linear RGB, scalar map, nits array, or already PQ encoded before conversion.
  • BT.2020 conversionConverts AP0/D60, AP1, or BT.709 linear data to BT.2020 D65 linear RGB with explicit matrices.
  • Nits mappingMaps linear values to absolute nits using a stated diffuse white and peak, with a clipping policy.
  • PQ/ST 2084 encodingEncodes clamped nits to PQ and quantizes to uint16 for 16-bit PNG output.
  • RGB16 PNG writing with cICPWrites a 16-bit RGB PNG with a cICP chunk set to 9/16/0/full range.
  • Optional HDR ICC modeAttaches an HDR/PQ ICC profile with a cicpTag for Discord or Chrome preview tests when requested.
  • PNG validationReports bit depth, cICP values, clip statistics, and a PQ round-trip check for each generated PNG.
  • Reuse guidanceDirects work to existing analysis helpers and a promotion rule for shared PQ, PNG, and cICP code.

What you need

  • Python for the referenced template and analysis scripts

Try asking

  • Convert this AP0 D60 EXR to a BT.2020 PQ 16-bit PNG with cICP
  • Make a PQ PNG from these nits values using 100 nit diffuse white
  • Check that this PNG has a cICP chunk set to 9/16/0/full range

Good to know

  • Keep the native cICP output by default; ICC attachment is only for explicit preview tests.
  • Discord WebP previews are 8-bit, so they do not prove high-bit-depth precision survived.
  • Native PNG cICP may not survive Discord's WebP preview path.
  • Pillow is discouraged unless it is known to preserve 16-bit RGB exactly.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/bt2020-png-generation/SKILL.md, .agents/skills/bt2020-png-generation/templates/bt2020_pq_png.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB
  • templates/bt2020_pq_png.py2 KB

Alternatives to bt2020-png-generation

All alternatives →

Compare with intelligence-vocabulary, media-use or media_library

bt2020-png-generation: common questions

What does cICP 9/16/0/full mean for these PNG files?

The source sets the cICP values to BT.2020 primaries (9), SMPTE ST 2084 PQ transfer (16), RGB identity matrix (0), and full range. It warns not to use matrix 6 for native RGB PNG samples.

When should the HDR ICC path be used?

The source says to use it only when the user asks for Discord preview, Chrome HDR ICC, cicpTag, or Chromium issue 40239687 behavior. Normal analysis output stays as native PNG cICP.

Does this skill handle synthetic test patterns or graphs?

No. The source says those tasks are delegated to the hdr-test-pattern-generation and analysis-graphing skills.

How do I install bt2020-png-generation?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is bt2020-png-generation free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is bt2020-png-generation safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to bt2020-png-generation?

Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.

bt2020-png-generation Install

Add to stack

Loading.