Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.spojit.com/llms.txt

Use this file to discover all available pages before exploring further.

The Image Tools connector provides operations for image processing — resizing, cropping, format conversion, compression, and effects.
No connection required — this utility connector works out of the box.
All image inputs and outputs are base64-encoded strings.

Tools

image
string
required
Base64-encoded image.
width
number
Target width in pixels.
height
number
Target height in pixels.
fit
string
default:"inside"
Resize strategy: cover, contain, fill, inside, or outside.
format
string
Output format: jpeg, png, webp, or avif.
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
  "width": 800,
  "height": 600,
  "fit": "inside",
  "format": "webp"
}
Example response:
{
  "success": true,
  "width": 800,
  "height": 533,
  "format": "webp",
  "image": "UklGRuoCAABXRUJQVlA4IN4CAABwEQ..."
}
image
string
required
Base64-encoded image.
left
number
required
Left edge position (x).
top
number
required
Top edge position (y).
width
number
required
Crop width.
height
number
required
Crop height.
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
  "left": 100,
  "top": 50,
  "width": 400,
  "height": 300
}
Example response:
{
  "success": true,
  "width": 400,
  "height": 300,
  "image": "iVBORw0KGgoAAAANSUhEUgAAAZA..."
}
image
string
required
Base64-encoded image.
angle
number
required
Rotation angle in degrees (clockwise).
background
string
default:"#000000"
Background colour for exposed areas (hex).
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
  "angle": 90,
  "background": "#ffffff"
}
Example response:
{
  "success": true,
  "width": 600,
  "height": 1200,
  "image": "iVBORw0KGgoAAAANSUhEUgAAAloA..."
}
image
string
required
Base64-encoded image.
format
string
required
Target format: jpeg, png, webp, avif, gif, or tiff.
quality
number
default:"80"
Quality for lossy formats (1–100).
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
  "format": "webp",
  "quality": 85
}
Example response:
{
  "success": true,
  "format": "webp",
  "size": 45320,
  "image": "UklGRuoCAABXRUJQVlA4IN4CAABwEQ..."
}
image
string
required
Base64-encoded image.
quality
number
default:"80"
Quality level (1–100).
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
  "quality": 60
}
Example response:
{
  "success": true,
  "originalSize": 284500,
  "compressedSize": 98200,
  "reduction": "65%",
  "image": "/9j/4AAQSkZJRgABAQEASABIAAD..."
}
Returns dimensions, format, file size, and other metadata.
image
string
required
Base64-encoded image.
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
}
Example response:
{
  "width": 1920,
  "height": 1080,
  "format": "png",
  "space": "srgb",
  "channels": 4,
  "depth": "uchar",
  "density": 72,
  "hasAlpha": true,
  "orientation": 1,
  "size": 284500
}
image
string
required
Base64-encoded image.
size
number
default:"150"
Maximum dimension in pixels.
format
string
default:"jpeg"
Output format: jpeg, png, or webp.
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
  "size": 200,
  "format": "jpeg"
}
Example response:
{
  "success": true,
  "width": 200,
  "height": 133,
  "format": "jpeg",
  "image": "/9j/4AAQSkZJRgABAQEASABIAAD..."
}
image
string
required
Base64-encoded image.
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
}
Example response:
{
  "success": true,
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
}
image
string
required
Base64-encoded image.
direction
string
required
Flip direction: horizontal, vertical, or both.
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
  "direction": "horizontal"
}
Example response:
{
  "success": true,
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
}
image
string
required
Base64-encoded image.
sigma
number
default:"3"
Blur amount (0.3–1000).
Example request:
{
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
  "sigma": 5
}
Example response:
{
  "success": true,
  "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
}