Go to example tasks

Compress images below a target file size

Compress images until each file is below a target size (e.g. 200 KB for upload limits or e-mail) – the quality is searched automatically, never below the minimum quality you set.

Try for free
Image Converter & Optimizer (WebP, AVIF, JPEG, PNG)
Image Converter & Optimizer (WebP, AVIF, JPEG, PNG)cellwright/image-converter
Converted image
Source
Ok
Format
+7 fields
Text
Number
Boolean
List
Object

Input

Image URLs
url:https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png
Output format:jpeg
Target file size (kB):200
Minimum quality:50

Output fields

Converted image
Source
Ok
Format
Width
Height
Original bytes
Output bytes
Saved %
Quality
Error

How it works

Sign up on Apify or log in

The Image Converter & Optimizer (WebP, AVIF, JPEG, PNG) Actor is ready to run with the inputs already set for "Compress images below a target file size". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Compress images below a target file size" task

The Image Converter & Optimizer (WebP, AVIF, JPEG, PNG) Actor will start running based on the input automatically. You can also change all the input fields, like image urls, output format, and more, to match your specific use case.

Receive the "Compress images below a target file size" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as converted image, source, ok, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Compress images below a target file size" task via API.

Image

Integrate "Compress images below a target file size" into your workflow

Connect "Compress images below a target file size" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay