mcpField
T
transform-describe-image-with-transloadit

transform-describe-image-with-transloadit

github.com/transloaditCreative & media578 installsUpdated 1w ago
Repository

About transform-describe-image-with-transloadit

This skill uses the official Transloadit Node CLI to create image labels or selected descriptive fields from a local image. It is intended for workflows that need recognizer-style tags or publishable CMS metadata saved as JSON.

Key features

  1. 01Generate image labels as JSON
  2. 02Create WordPress-ready fields
  3. 03Select custom descriptive fields
  4. 04Resolve credentials from supported locations
  5. 05Choose a JSON output path

Use cases

  1. 01Generating tags for an image library
  2. 02Preparing image metadata for WordPress
  3. 03Creating alt text and captions for local images

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/transloadit/skills --skill transform-describe-image-with-transloadit

After installing, type/transform-describe-image-with-transloaditin Claude Code to confirm it loaded.

Details

From the project README

Inputs

  • Absolute path to a local input image
  • Optional .json output path; default is the same path with .json

Prepare

Resolve credentials in this order:

  • Shell environment variables
  • The current working directory .env only
  • ~/.transloadit/credentials

If your .env lives in a parent directory, export the variables into the shell first.

Run

Use the official Transloadit Node CLI directly.

Labels / object-style description:

npx -y @transloadit/node image describe \
  --input ./input.jpg \
  --fields labels \
  --output ./labels.json

WordPress-ready fields:

npx -y @transloadit/node image describe \
  --input ./input.jpg \
  --for wordpress \
  --output ./fields.json

Custom field selection:

npx -y @transloadit/node image describe \
  --input ./input.jpg \
  --fields altText,title,caption,description \
  --output ./fields.json

If you omit --output, the CLI writes the JSON file next to the input image using the same base name. After the command finishes, confirm the JSON file exists at the expected output path.

Output Shapes

--fields labels returns a JSON array of labels.

--for wordpress and authored --fields ... return a JSON object with requested string fields, for example:

{
  "altText": "...",
  "title": "...",
  "caption": "...",
  "description": "..."
}

Notes

  • Prefer --for wordpress when you want publishable CMS fields.
  • Prefer --fields labels when you want recognizer-style tags instead of authored copy.
  • --model only matters for authored fields, not for labels.
  • Prefer ~/.transloadit/credentials as the default fallback when you want a reusable user-level setup.
  • A current-directory .env still takes precedence, so avoid it when deterministic account selection matters.
  • If credentials only exist in a repo-root .env, run the command from that directory or export the variables first.

Debug If It Fails

npx -y @transloadit/node assemblies get <assemblyIdOrUrl> -j

Comments

Markdown supported