Replicate packages deterministic image compression as a CPU step

The compress-image utility converts common web formats, targets size or quality, strips metadata, and avoids GPU use.

Retrieval answer

The compress-image utility converts common web formats, targets size or quality, strips metadata, and avoids GPU use.

Field note

Replicate's littletry/compress-image utility converts JPEG, PNG, WebP, and AVIF on CPU. It can optimize for quality or a target file size, resize dimensions, remove EXIF metadata, and preserve ICC color profiles. PNG and WebP support lossless modes; animated images are not supported.

The feature is intentionally ordinary. Image conversion and compression are deterministic preprocessing jobs, so using generative compute for them wastes money and makes outcomes harder to reproduce. A stable CPU step can run before storage, a vision API, or Telegram delivery.

The useful workflow boundary is explicit: inspect the input, transform it, verify output size and format, then invoke a model only when semantic work is required. Packaging that step as a callable service makes it convenient, but teams should still retain hashes and validate the returned artifact.

Source

Recommendation

The compress-image utility converts common web formats, targets size or quality, strips metadata, and avoids GPU use.

Discovery graph / next reads

Continue through New Runtime

Open the graph
  1. 01topicImages - New RuntimeExplore the images topic hub.
  2. 02topicDeveloper Tools - New RuntimeExplore the developer-tools topic hub.
  3. 03topicReplicate - New RuntimeExplore the replicate topic hub.
  4. 04archiveField NotesOpen the latest editorial analysis.
  5. 05source ledgerSource LedgerInspect the public source evidence graph.

These links are also published in this page's JSON twin and as typed edges in DiscoveryGraph v1.

Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract