agentsclimarketplace

Run2 image grayscale

Skill cxcscmu/SkillLearnBench/skills/b2-self-feedback-claude-sonnet-4-6/video-object-counting/run2_image-grayscale

Convert PNG images to grayscale inplace using ImageMagick; covers both keyframes and template images for consistent matching.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run2_image-grayscale

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.1 KB, 223 tokens by cl100k_base, as published. Nobody here has run it

Convert Images to Grayscale (Inplace)

Prerequisites

  • ImageMagick: sudo apt install imagemagick

Convert Single Image Inplace

convert image.png -colorspace Gray image.png

Batch Convert Keyframes Inplace

for f in /root/keyframes_*.png; do
    convert "$f" -colorspace Gray "$f"
done

Convert Template Images to Grayscale (Important!)

When keyframes are converted to grayscale, template images used for matching should ALSO be converted to grayscale for consistent comparison:

for f in /root/coin.png /root/enemy.png /root/turtle.png; do
    convert "$f" -colorspace Gray "$f"
done

Notes

  • -colorspace Gray converts to grayscale while keeping PNG format and file extension
  • Overwriting the input path makes the operation inplace
  • Template images must match the colorspace of the frames they are compared against
  • Works for PNG, JPG, BMP, and other formats

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.