Run2 imagemagick grayscale
Convert a batch of images to grayscale in-place using ImageMagick's mogrify command.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run2_imagemagick-grayscaleAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.9 KB, 189 tokens by cl100k_base, as published. Nobody here has run it
ImageMagick Grayscale Conversion
Use ImageMagick to edit images in batch on the Linux command-line.
Usage
To convert images to grayscale in-place, the mogrify command is the most efficient choice as it overwrites the original files, avoiding the need to manage new filenames.
mogrify -colorspace Gray <image_files>
Options Explained:
mogrify: The ImageMagick tool for in-place batch image manipulation.-colorspace Gray: Changes the colorspace of the image to grayscale, discarding RGB color information.
Example
Convert all PNG files in the current directory to grayscale in-place:
mogrify -colorspace Gray *.png
Alternatively, if you want to create new files without modifying the originals, use convert:
convert input.png -colorspace Gray output.png
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.