littletry/compress-image

Compress, resize, and convert JPEG, PNG, WebP, and AVIF images.

Public
120.7K runs

Run time and cost

This model costs approximately $0.00016 to run on Replicate, or 6250 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on CPU hardware. Predictions typically complete within 2 seconds.

Readme

Image Compressor

Compress, resize, and convert static images using a CPU-only image processing pipeline.

Features

  • JPEG, PNG, WebP, and AVIF
  • Quality-based compression
  • Target file-size compression
  • Lossless PNG and WebP output
  • Proportional resizing
  • EXIF removal and ICC profile preservation
  • Transparent images with configurable JPEG background color

Output

Returns one compressed image. On Replicate, prediction.output is a temporary HTTPS file URL.

Limits

  • Maximum input size: 50 MB
  • Maximum resolution: 40 megapixels
  • Maximum side length: 16,384 pixels
  • Static images only
  • Animated images and SVG are not supported
  • Target file size is best effort and may require reducing image dimensions

More AI tools

Explore leading AI models online with SeeAPI — a unified platform for multimodal generation.

Model created