ImageKit: Resize, Convert to WebP & Compress Images logo

ImageKit: Resize, Convert to WebP & Compress Images

by OllyWebsiteUpdated Nov 22, 2026

An HTTP+MCP image utility that resizes, converts to WebP, and compresses images over a single round-trip - with crop, rotate, grayscale, thumbnails, EXIF stripping and format info.

How to pay

Subscribe

Monthly billing

$9.99/month

Predictable monthly cost with included usage. Best for steady, high-volume traffic.

  • Unlimited tools within plan limits
  • One API key, billed once a month
  • Cancel any time

ImageKit — Resize, Convert to WebP & Compress Images

ImageKit is an HTTP API and Model-Context-Protocol (MCP) server for image processing over a single round-trip. Pass it a public image URL and it resizes, converts to WebP, and compresses the result — with crop, rotate, grayscale, thumbnail generation, EXIF stripping, and format/geometry info — no local Sharp or ImageMagick required.

What it does

ImageKit accepts JPEG, PNG, WebP, GIF, BMP, TIFF and ICO source images by public http(s) URL (up to 15 MB and 40 megapixels) and returns the processed image either as raw bytes or as a JSON data URI with dimensions.

Tools

  • imagekit_compress — Compress an image for the web. Re-encodes with optimised settings and optional downscaling to shrink file size for websites and email. Defaults to WebP; set modern=false for JPEG (or PNG when the image has transparency). The base64 response includes original_bytes so you can show the savings. EXIF orientation is applied first, so phone photos come out the right way up; JPEG output flattens transparency onto white.
  • imagekit_convert — Convert an image between formats (JPEG, PNG, WebP, GIF, BMP, TIFF, ICO). Specify format to override the output container, or rely on modern=true/false for WebP vs JPEG/PNG.
  • imagekit_resize — Resize an image to exact width × height, or provide one dimension to scale proportionally. Supports a configurable fit mode and optional quality setting for lossy output.
  • imagekit_crop — Crop to a rectangular region given by x, y, width and height. Useful for extracting faces, logos or tiles from larger photos.
  • imagekit_rotate — Rotate an image by 90, 180 or 270 degrees. Handles the canvas reorientation; combine with imagekit_resize if you also need a target dimension.
  • imagekit_grayscale — Produce a greyscale version of the source. Outputs in the same container as the source (or the format you specify), useful for document images and accessibility variants.
  • imagekit_thumbnail — Generate a small preview/thumbnail at a requested size (treated as the larger dimension, aspect ratio preserved). Ideal for galleries, search results and attachment previews.
  • imagekit_strip_exif — Return a clean copy of the image with EXIF / XMP / IPTC metadata removed. Useful when publishing user photos and you want to discard location, camera and contact metadata.
  • imagekit_info — Inspect an image and report its format, width, height, colour space and other header-level properties without downloading the full file.

Typical workflows

  • Asset pipeline: imagekit_info to check dimensions, imagekit_resize + imagekit_compress to produce a WebP for the page, and imagekit_thumbnail for the card preview — all from one source URL.
  • Document intake: imagekit_rotate to orient scans, imagekit_grayscale + imagekit_compress to shrink, imagekit_strip_exif to remove metadata before publishing.
  • Privacy-safe uploads: imagekit_strip_exif on user-submitted photos, then imagekit_resize to a safe dimension and imagekit_compress as WebP for storage and delivery.

Input notes

Every tool takes a public url (http or https) pointing to the source image. The server does not follow redirects and refuses private/internal addresses, so the URL must be directly reachable from the internet. Accepted source formats: JPEG, PNG, WebP, GIF, BMP, TIFF, ICO. Limits are 15 MB and 40 megapixels per source.

For lossy output, quality accepts 1–100 (clamped). When outputting JPEG, transparency is flattened onto white; use format=png or modern=true to preserve an alpha channel.

How will you use ImageKit: Resize, Convert to WebP & Compress Images?

In an AI agent

Claude, Codex, Cursor, VS Code… Choose →

From the terminal

mcpize CLI, pipelines, Skills. Choose →

In your code

TypeScript, Python, cURL. Choose →