Image Optimizer Api avatar

Image Optimizer Api

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Image Optimizer Api

Image Optimizer Api

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

servet öksüz

servet öksüz

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

22 days ago

Last modified

Share

🖼️ Image Optimization API (Apify Actor)

High-performance image compression and transformation API built with Sharp and running on Apify.

Optimize, resize, convert formats, and reduce image size via a simple API call.


🚀 Features

  • 📦 Image compression

  • 🔄 Format conversion (WebP, JPEG, PNG, AVIF)

  • 📏 Resize (width / height)

  • 🧹 Metadata stripping (EXIF removal)

  • 🖼️ Single & batch processing

  • 🔗 Direct downloadable output URL

  • ⚡ Fast processing with Sharp


📥 Input Example

{ "imageUrl": "https://example.com/image.png", "quality": 75, "format": "webp", "plan": "free" }

Input Parameters

FieldTypeDescription
imageUrlstringDirect URL of image
base64stringBase64 image data
imagesarrayMultiple image URLs/base64 (paid plans)
qualitynumberCompression quality (1–100)
formatstringOutput format: webp, jpeg, png, avif
widthnumberResize width (optional)
heightnumberResize height (optional)
stripMetadatabooleanRemove EXIF metadata
planstringfree, starter, pro, business

📤 Output Example

Each processed image produces a dataset item:

{ "index": 1, "originalSizeKB": 1450, "optimizedSizeKB": 320, "savedPercent": 77.9, "format": "webp", "downloadUrl": "https://api.apify.com/v2/key-value-stores/XXXX/records/output-1.webp" }

If an error occurs:

{ "index": 2, "error": "Image too large (max 10MB)" }


📦 Free vs Paid Plans

PlanLimitations
Free1 image per request
PaidBatch processing supported

🔧 How It Works

  1. Downloads or decodes image

  2. Processes with Sharp

  3. Applies resize & format conversion

  4. Compresses image

  5. Stores optimized image

  6. Returns download URL


🛠 Tech Stack

  • Node.js

  • Sharp

  • Apify Actor Platform


⚠ Limits

  • Max image size: 10MB

  • Supported formats: webp, jpeg, png, avif


💡 Use Cases

  • Web performance optimization

  • CDN pre-processing

  • CMS image pipeline

  • Mobile app image compression

  • Automation workflows


📄 License

ISC