LighterImage - Image Compressor With No Quality Loss

LighterImage - Image Compressor With No Quality Loss

by lighterimage

Compress images & convert to WebP in one API call. Input via URL, Base64, or KV store. Output: optimized original + WebP with compression stats. TinyP...

7 runs
2 users
Try This Actor

Opens on Apify.com

About LighterImage - Image Compressor With No Quality Loss

Compress images & convert to WebP in one API call. Input via URL, Base64, or KV store. Output: optimized original + WebP with compression stats. TinyPNG-quality algorithms (mozjpeg, palette mode, smart subsampling). Batch processing for automation pipelines. Pay only for successful compressions.

What does this actor do?

LighterImage - Image Compressor With No Quality Loss is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Image Compression & WebP Optimization Actor Compress images and convert to WebP format. Supports URL, Base64, and Key-Value store input. ## Features - Multiple input methods: URL, Base64 data, or Apify Key-Value store - Dual output: Compressed original format (JPEG/PNG) + WebP version - Batch processing: Up to 200 images per run (Pro tier) - Optional resizing: Set max width/height constraints - Configurable quality: Override default quality settings - Tier-based limits: Free and Pro tiers with different limits ## Input json { "images": [ { "url": "https://example.com/image.jpg" }, { "base64": "iVBORw0KGgo..." }, { "key": "my-image-key", "filename": "photo.png" } ], "quality": 80, "returnWebp": true, "returnOriginalFormat": true, "maxWidth": 1920, "maxHeight": 1080, "tier": "free" } ### Input Parameters | Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | images | array | Yes | - | Array of images to compress | | images[].url | string | No | - | Public URL of image | | images[].base64 | string | No | - | Base64-encoded image data | | images[].key | string | No | - | Key in default KV store | | images[].filename | string | No | - | Output filename | | quality | number | No | 80-85 | Quality (1-100) | | returnWebp | boolean | No | true | Generate WebP version | | returnOriginalFormat | boolean | No | true | Return compressed original | | maxWidth | number | No | - | Max width for resizing | | maxHeight | number | No | - | Max height for resizing | | tier | string | No | "free" | Usage tier: "free" or "pro" | At least one of url, base64, or key must be provided per image. ## Output json { "results": [ { "input": "https://example.com/image.jpg", "originalCompressedUrl": "https://api.apify.com/v2/key-value-stores/.../records/image-compressed-123.jpg", "webpUrl": "https://api.apify.com/v2/key-value-stores/.../records/image-webp-123.webp", "stats": { "inputSize": 5423123, "compressedSize": 2143001, "webpSize": 537121, "compressionRatio": 0.40, "durationMs": 128 } } ], "successCount": 1, "errorCount": 0, "totalDurationMs": 250 } ## Tier Limits | Tier | Images/Run | Max File Size | |------|------------|---------------| | Free | 10 | 15 MB | | Pro | 200 | 30 MB | ## Supported Formats Input: JPEG, PNG, WebP, BMP Output: - Original format (JPEG or PNG, optimized) - WebP (always available) ## Compression Settings The Actor uses proven compression settings from LighterImage: - JPEG: Quality 82, mozjpeg encoder, progressive, trellis quantization - PNG: Quality 85, palette mode (256 colors), Floyd-Steinberg dithering - WebP: Quality 80, smart subsampling, effort level 6 ## Usage Examples ### Compress images from URLs json { "images": [ { "url": "https://example.com/photo1.jpg" }, { "url": "https://example.com/photo2.png" } ] } ### Compress with custom quality and resizing json { "images": [ { "url": "https://example.com/large-photo.jpg" } ], "quality": 70, "maxWidth": 1200, "maxHeight": 800 } ### Compress Base64-encoded images json { "images": [ { "base64": "data:image/png;base64,iVBORw0KGgo...", "filename": "my-image.png" } ] } ### WebP-only output (skip original format) json { "images": [ { "url": "https://example.com/image.jpg" } ], "returnOriginalFormat": false, "returnWebp": true } ## Development bash # Install dependencies npm install # Build TypeScript npm run build # Run locally (requires Apify CLI) apify run ## License ISC

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try LighterImage - Image Compressor With No Quality Loss now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
lighterimage
Pricing
Paid
Total Runs
7
Active Users
2
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support