transform-describe-image-with-transloadit
Inputs
- Absolute path to a local input image
- Optional
.jsonoutput path; default is the same path with.json
Prepare
Resolve credentials in this order:
- Shell environment variables
- The current working directory
.envonly ~/.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 wordpresswhen you want publishable CMS fields. - Prefer
--fields labelswhen you want recognizer-style tags instead of authored copy. --modelonly matters for authored fields, not forlabels.- Prefer
~/.transloadit/credentialsas the default fallback when you want a reusable user-level setup. - A current-directory
.envstill 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
More from transloadit/skills
transform-encode-hls-video-with-transloadit
One-off HLS encoding (local video -> HLS renditions + playlist) using Transloadit via the `transloadit` CLI. Prefer builtin templates (`builtin/encode-hls-video@latest`) and download outputs locally via `-o`.
38transform-generate-image-with-transloadit
One-off image generation (prompt -> image file) using Transloadit via the `transloadit` CLI. Prefer `image generate` for text-only and input-guided generation, and use `--output` when you need a deterministic path.
37integrate-uppy-transloadit-s3-uploading-to-nextjs
Add Uppy Dashboard + Transloadit uploads to a Next.js (App Router) app, with server-side signature generation and optional /s3/store export.
36transloadit
Main entry-point skill for Transloadit. Route to the right `integrate-*`, `transform-*`, or `docs-*` skill, and prefer executing via `npx -y @transloadit/node ...` (CLI) for deterministic behavior.
35docs-transloadit-robots
Offline lookup for Transloadit Robots and their parameter docs/examples via the `transloadit` CLI. Use to draft or validate `steps` JSON without guessing robot names/params.
35integrate-asset-delivery-with-transloadit-smartcdn-in-nextjs
Add Transloadit Smart CDN URL signing to a Next.js App Router project (server-side signing route + optional client demo page).
35