image compression

How to plan image-compression quotas across build pipelines

CLI quotas, per-batch caps and API limits measure different things. Plan around the unit each tool actually counts before putting compression in CI.

By Keisha Fairbairn·October 14, 2026·4 min read
What matters here
  1. PiPic’s CLI allowance is 100 images per month on its free tier and 5,000 on Pro.
  2. PiPic’s web limit is 100 files per batch, not a stated monthly build allowance.
  3. Check whether retries, staging runs and production runs consume separate image-processing units.

Image compression looks like a small build step until several environments start running it. Staging, preview builds and production releases may all touch the same assets. A quota that covers a developer’s test run can fall short when the pipeline processes files repeatedly.

The first task is to compare like with like. A monthly image allowance, a per-batch cap and an API rate limit are different constraints. Before choosing an image compression API or CLI, find out what the service counts, when it counts it and what happens when a job reaches the limit.

Separate batch size from monthly allowance

PiPic’s web version is free to use without an account and accepts up to 100 files per batch, with an 8 MB limit per image. That describes a batch, not a stated monthly allowance for automated builds. The browser workflow suits occasional, manual batches; it is not a substitute for confirming automation limits.

For automation, PiPic offers an open-source CLI, published as @pipic/cli on npm, and an API. The CLI has a free tier of 100 images per month and a Pro tier of 5,000 images per month. Those figures give teams a concrete starting point for estimating CLI usage. The available facts do not specify API quotas, so teams considering API-based builds should confirm those limits before relying on them.

Do not assume the CLI’s monthly allowance also describes the API, or that a batch cap tells you how many images a team can process in a month. Ask whether the service counts source files, processing attempts or successful outputs. Check whether staging and production share an allowance, and how the allowance is handled when a job retries.

Compare the operating models

A hosted CLI is a practical fit when the build pipeline needs a repeatable command and the team is comfortable sending images to a service for processing. PiPic’s documented CLI options include atomic in-place replacement or saving results to a fresh directory. That gives teams a choice between modifying the working assets and keeping generated output separate. PiPic says images are deleted from its servers immediately after processing is complete; teams should still assess that handling against their own data requirements.

A local npm image compression package is a different category of choice. It may suit a team that wants processing to happen within its own build environment. But “local” does not settle the operational questions: check which formats and image characteristics it supports, how it performs on your CI runners, how it is maintained, and whether its output meets visual and file-size targets. Package licensing and dependency updates belong in that evaluation too.

A hosted API can fit systems that need to call compression as part of a service rather than invoke a CLI. Its limits may be expressed as requests, images, or another unit, and pricing can be structured differently from a monthly CLI allowance. Get the current quota and billing terms directly; do not infer them from another product tier. A browser tool remains useful for one-off work, but a per-batch cap and manual handling make it a different option from unattended pipeline automation.

Estimate the workload before picking a tier

Start with the number of distinct images likely to be compressed in a month. Then map the pipeline: note whether a change triggers one run or several, whether previews process assets again, and whether retries re-submit files. These are questions to measure in your own setup, not assumptions about how a provider counts usage.

For PiPic’s CLI, compare that measured total with the stated 100-image monthly free tier and 5,000-image Pro tier. Leave room for test runs and unexpected asset additions. If the estimate is close to a limit, decide what should happen when the allowance is exhausted: fail the build, skip compression, or route the work elsewhere. That behavior should be explicit in the pipeline rather than discovered during a release.

Keep staging useful without letting it obscure production demand. For example, track images processed by environment and by job, and check whether an asset has already been compressed before scheduling it again. Whether your tool can reuse prior output is product-specific; verify it rather than counting on it. A monthly usage check can help catch drift before a release pipeline depends on a quota it has already consumed. PiPic’s guide to checking monthly CLI usage in GitHub Actions covers one way to monitor that workflow.

Choose the limit you can operate

For occasional manual work, a free browser workflow with a clear per-batch cap may be enough. For builds, compare the monthly image allowance, API limits, retry behavior and failure modes—not just the headline tier. PiPic’s CLI is straightforward to evaluate when the workload fits its stated monthly tiers; teams with larger or less predictable volumes should confirm the relevant terms before adopting it. A reliable plan starts with measured pipeline demand and a clear response to quota exhaustion, not a guess based on the number of files in a typical commit.

More from PiPic News