Compress images to a target file size (under 40 KB)
Compress two public-domain sample images to WebP and let the Actor lower quality step by step until each file is under 40 KB. Target size is best effort: if it cannot be reached, the smallest version is saved and targetMet is false. Costs at most $0.002 per run.
Input
Output fields
Sign up on Apify or log in
The Bulk Image Compressor & Converter: Images to WebP, AVIF Actor is ready to run with the inputs already set for "Compress images to a target file size (under 40 KB)". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Compress images to a target file size (under 40 KB)" task
The Bulk Image Compressor & Converter: Images to WebP, AVIF 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 to a target file size (under 40 KB)" 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 image url, status, input format, 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 to a target file size (under 40 KB)" task via API.

Integrate "Compress images to a target file size (under 40 KB)" into your workflow
Connect "Compress images to a target file size (under 40 KB)" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay