Image Compressor (JPG, PNG, WebP, AVIF) - TinyPNG alternative avatar

Image Compressor (JPG, PNG, WebP, AVIF) - TinyPNG alternative

Pricing

from $1.00 / 1,000 images compressed

Go to Apify Store
Image Compressor (JPG, PNG, WebP, AVIF) - TinyPNG alternative

Image Compressor (JPG, PNG, WebP, AVIF) - TinyPNG alternative

Compress images in bulk from URLs, TinyPNG-style: mozjpeg JPG, palette PNG, WebP, AVIF. Keep the format or convert, resize to a max width, or hit a target size in KB. Never returns a bigger file. Pay per image.

Pricing

from $1.00 / 1,000 images compressed

Rating

0.0

(0)

Developer

Chalid Ade

Chalid Ade

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

Share

Image Compressor — TinyPNG / TinyJPG alternative in bulk

Compress JPG, PNG, WebP, AVIF and HEIC images in bulk from URLs. Same idea as TinyPNG: mozjpeg for JPG, palette-quantised PNG, WebP and AVIF — typically 40–80% smaller with no visible difference. Hit an upload limit with a target size in KB, or shrink phone photos to a max width.

Features

  • Keeps the format by default (HEIC becomes JPG), or converts to JPG, WebP, AVIF, PNG.
  • Target file size: the best quality that fits under e.g. 200 KB (binary search on quality).
  • Max width/height: keeps the ratio, never enlarges.
  • Never bigger: if the original is already smaller, you get the original back.
  • EXIF rotation applied, metadata stripped (GPS, camera) unless you keep it.
  • Lossless mode for WebP/AVIF/PNG.
  • Pay per image. Failed images are free.

Input

{
"files": [
{ "url": "https://example.com/hero.png" },
{ "url": "https://example.com/IMG_0042.HEIC" }
],
"quality": 75,
"maxWidth": 1920
}
FieldDefaultNotes
files—Image URLs
quality751–100 (with a target size: the highest tried)
targetSizeKb—e.g. 200
maxWidth, maxHeight—px
formatsamesame, jpg, webp, avif, png
losslessfalse
keepMetadatafalse
maxFileSizeMb50

Output

{
"url": "https://example.com/hero.png",
"name": "hero.png",
"downloadUrl": "https://api.apify.com/v2/key-value-stores/…/records/0001-hero.png",
"inputFormat": "png",
"outputFormat": "png",
"quality": 75,
"width": 1920,
"height": 1080,
"sizeBefore": 2484211,
"sizeAfter": 512408,
"savedPercent": 79.4
}

Need format conversion and resize modes (cover, contain, padding)? See the Image Converter & Resizer.

Pricing

Pay per event: one image-compressed per image. Failed images are free.

Free browser version

toowl.my.id/en/compress-image compresses images in your browser, free, nothing uploaded.

Call it from your code

curl -X POST "https://api.apify.com/v2/acts/toowl~image-compressor/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"files":[{"url":"https://example.com/your-file"}]}'

The same call works from Python (apify-client), JavaScript, Make, Zapier and n8n (Apify app/node or a plain HTTP request).

Use it from AI agents (MCP)

Add this Actor as a tool to Claude, Cursor, VS Code or any MCP client through Apify's MCP server:

https://mcp.apify.com/?actors=toowl/image-compressor

The agent can then pass file URLs and read the results itself.

More toowl file APIs

Speech to text & subtitles, AI vocal remover, text to speech, AI object remover, PDF to Markdown, PDF to Word & Excel, HTML/URL to PDF, OCR, Office to PDF, PDF compressor, PDF merge/split, PDF password protect, PDF to image, image to PDF, bulk watermark, image converter and compressor, background remover, AI upscaler, image to SVG, QR code and barcode generators, QR/barcode reader, favicon generator, video compressor, frame extractor and audio converter. All pay per file, all batch-friendly: toowl.my.id/en/api.

Questions or a format that fails? Open an issue on the Actor's Issues tab.