Go to example tasks

Compress image

Compress one image URL into a 1200 by 800 AVIF with quality 65, a 1 MB file-size limit, centered containment, white padding, and no metadata. Review the original and output sizes in the dataset row and use output.url to download the file.

Try for free
Image Resizer API
Image Resizer APImaximedupre/image-resizer-api
ID
Source
Original image
Generated image
+2 fields
Text
Number
Boolean
List
Object

Input

Images(required)
Image URL:https://placehold.co/1600x1000.jpg?text=compress
Image ID:compress-sample
Target size:custom
Custom width:1200
Custom height:800
Resize fit:contain
Crop position:center
Padding style:solid
Background color:#FFFFFF
Output format:avif
Quality:65
Maximum file size:1
Preserve image metadata:false

Output fields

ID
Source
Original image
Generated image
Metadata preserved
File size limit MB

How it works

Sign up on Apify or log in

The Image Resizer API Actor is ready to run with the inputs already set for "Compress image". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Compress image" task

The Image Resizer API Actor will start running based on the input automatically. You can also change all the input fields, like images, target size, and more, to match your specific use case.

Receive the "Compress image" 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 ID, source, original image, 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 image" task via API.

Image

Integrate "Compress image" into your workflow

Connect "Compress image" 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