/image-ops:organize-by-formatfrom image-ops
Sort images into sub-folders by file format.
Ships in image-ops. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Sort images into format-based sub-folders.
Ask which folder to operate on — default is the current working directory. Confirm recursion; default flat.
Classify each file by extension (case-insensitive), with file / exiftool as a fallback for misnamed files or files missing an extension:
JPEG/ — .jpg, .jpegPNG/ — .pngHEIC/ — .heic, .heifWebP/ — .webpRAW/ — .nef (Nikon), .cr2 / .cr3 (Canon), .arw (Sony), .dng (Adobe), .raf (Fuji), .orf (Olympus), .rw2 (Panasonic)TIFF/ — .tif, .tiffGIF/ — .gifBMP/ — .bmpSVG/ — .svgother/ — anything that doesn't match, including files missing an extension and unknown formats# Fallback when extension is missing or misleading:
exiftool -s -s -s -FileType "image"
# or
file --mime-type "image"
Preview before acting — table of format → count, plus a sample filename per bucket. Wait for confirmation.
Prefer symlinks or CSV manifest over physical moves:
metadata/format-buckets.csvLog to notes/organize-by-format-{timestamp}.md with bucket counts and any files flagged as format/extension mismatch.
.jpg that exiftool reports as PNG) — these are often the interesting files in an import..xmp) should be kept adjacent to their RAW — when moving/symlinking, pair them.libheif to be present if further commands read the image; the bucketing itself is extension-based and doesn't need it.7-day visitors to each command page
19 commands in this plugin
/apply-filtersApply Image FiltersApply artistic or corrective filters to images with ImageMagick./batch-resizeBatch Resize ImagesResize a whole folder of images to target dimensions or a scale factor./bg-removalBg RemovalRemove the background from every image in a folder./compress-imagesCompress ImagesReduce image file size while holding quality at an acceptable level./convert-to-webpConvert To WebpConvert every image in the current directory to WebP./crop-imagesCrop ImagesCrop images to fixed dimensions, an aspect ratio, or a custom area.2 plugins ship this exact command · first indexed Aug 30, 2026
npx claudepluginhub shotcowboystyle/ag-skills --plugin image-ops