oddkit▮
~/oddkit $ claude plugin install oddkit # claude code plugin

oddkit for Claude Code

Tell Claude the format, pixel size and file size. It writes real image files to ./oddkit-images/ — exactly the size you asked for, ready for upload and QA tests.

Install

  1. 1. Add the marketplace

    /plugin marketplace add yeleepark/oddkit-claude-plugin
  2. 2. Install the plugin

    /plugin install oddkit@oddkit

Run these inside Claude Code. The first run installs the image library automatically, which takes a few seconds. Node.js 20.9 or newer is required.

Use

Type /oddkit:image and describe the files in plain language, in any language. These are complete requests:

  • /oddkit:image 800x600 jpg 2MB
  • /oddkit:image 400x300 png, webp, gif each exactly 1MB
  • /oddkit:image 5 images of 100KB in tests/fixtures/images

Exact file size

The file size matches your number to the byte. The plugin grows the image content as far as it can, then fills the remaining bytes with metadata that does not change the picture. A tiny image asked to be 5 MB is mostly padding, and the plugin reports how much.

Formats

jpg is used when you don't name a format. gif is animated.

  • jpgdefault
  • png
  • webp
  • gif
  • avif
  • tiff
  • bmp
  • ico
  • svg

Limits

  • Up to 100 files per request, 16384 px per side (16383 px for webp), 40,000,000 pixels per image and 100 MB per file.
  • gif: up to 60 frames and 30,000,000 frame-pixels. Large gifs take a while.
  • A size smaller than the format can possibly be (for example 300 bytes for a 100×100 jpg) is skipped, and the plugin tells you the smallest size it can make.
  • heic is not supported. Existing files are never overwritten; a -2, -3 suffix is added.

FAQ

Is the file size really exact?
Yes. A file asked to be 2 MB is 2,000,000 bytes. MB means 1,000,000 bytes and MiB means 1,048,576 bytes, so write MiB if your server limit is 2 × 1024 × 1024.
Are my files uploaded anywhere?
No. The plugin runs on your machine and writes into the folder you choose. The only network use is installing the image library on the first run.
Can I run it without Claude Code, for example in CI?
Yes. The same script runs on its own: node scripts/generate.mjs --spec spec.json. Create the files once and commit them as test fixtures, or generate them in a CI step.
Where do the files go?
To ./oddkit-images/ in your current folder unless you name another folder. A manifest.json lists every file with its real size.

Source on GitHub ↗Prefer the browser? Open the Dummy Image Generator