API Reference

All tools are backed by public POST endpoints on api.theimgapp.com. Send your images via the images field as multipart/form-data along with any tool-specific parameters.

Quick Start

Here's how to compress an image using curl:

curl -X POST https://api.theimgapp.com/api/compress \
  -F "images=@photo.jpg" \
  -F "quality=80" \
  -o compressed.jpg

Common Parameters

Content-Type: multipart/form-data

Max file size: 50 MB per file

Max files: 50 files per request

Response: Processed image(s), or a ZIP file for batch operations

Endpoints

POST/api/compress

Compress images — reduce file size while keeping quality

ParameterTypeRequiredDescription
imagesFile[]YesImage files to compress
qualitynumberNoQuality level (1-100, default: 80)
formatstringNoOutput format (jpg, png, webp, avif)
POST/api/resize

Resize images by pixels or percentage

ParameterTypeRequiredDescription
imagesFile[]YesImage files to resize
widthnumberNoTarget width in pixels
heightnumberNoTarget height in pixels
percentagenumberNoScale percentage (e.g. 50)
POST/api/convert

Convert between image formats (JPG, PNG, WebP, AVIF, TIFF, GIF)

ParameterTypeRequiredDescription
imagesFile[]YesImage files to convert
formatstringYesTarget format (jpg, png, webp, avif, tiff, gif)
qualitynumberNoQuality level (1-100)
POST/api/crop

Crop images to specific dimensions

ParameterTypeRequiredDescription
imagesFile[]YesImage files to crop
leftnumberYesLeft offset in pixels
topnumberYesTop offset in pixels
widthnumberYesCrop width in pixels
heightnumberYesCrop height in pixels
POST/api/watermark

Add text watermarks to images

ParameterTypeRequiredDescription
imagesFile[]YesImage files to watermark
textstringYesWatermark text
positionstringNoPosition (center, top-left, etc.)
opacitynumberNoOpacity (0-100, default: 50)

All 60+ tools follow the same pattern: POST /api/{tool-id}. See the Tool Reference for a full list of available tool IDs and their specific parameters.