Image Processor

Resize, crop, convert, compress, rotate, flip, or read metadata from images using Sharp in an isolated container.

Type: ACTION · Handler: CONTAINER_PROCESS · Image: narakim/image-processor:1.0.0


Input

Pass imageBase64 from File Downloader, AI Image Generation, or Database Media download.


Operations

OperationKey inputs
resizewidth, height, fit (cover, contain, fill, …)
cropleft, top, width, height
convertformat (jpeg, png, webp)
compressquality (0–100, JPEG)
rotateangle (degrees)
flipaxis (horizontal / vertical)
metadata— (returns width, height, format, …)

Outputs

FieldDescription
imageBase64Processed image (except metadata-only)
contentTypeMIME type
sizeBytes

Deploy

Build the container before first use:

cd narakim-server/extensions/image-processor
docker build -t narakim/image-processor:1.0.0 .

The extension pool starts the container when a bot uses this node (same as PDF Generator).


Example chain

ai_image_generation → image_processor (compress) → discord_send_message
Was this helpful?
historyLast updated: May 10, 2026