# Image compressor

> Compress images online for free with a quality slider and live before/after preview. Runs in your browser, nothing uploaded. Perfect for faster websites.

Free tool by Orkosi. Page: https://orkosi.com/tools/image-compress

Make images lighter for the web. Pick a quality level, compare before and after, and download files that load faster and rank better.

1. Drop up to 50 images.
2. Set quality and optional max dimensions.
3. Compare sizes, then download or ZIP.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `image_url` | text | yes | Address of the image. A public https link to a JPG, PNG, WebP, GIF or AVIF image, up to 15 MB. |
| `quality` | integer | no | Quality. 75 to 85 is hard to tell from the original. Default: 80. |
| `max_dimension` | integer | no | Longest side in pixels, at most. Leave empty to keep the size. |
| `format` | "auto" \| "jpg" \| "webp" | no | Output format. Default: "auto". |

## Example

Input:

```json
{
  "image_url": "https://orkosi.com/samples/sample.jpg",
  "quality": 75,
  "format": "webp"
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "image-compress", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/image-compress/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"image_url":"https://orkosi.com/samples/sample.jpg","quality":75,"format":"webp"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

This tool makes a file. Give it the public https address of the source; the result carries `download_url`, a link to the file that works for one hour. Give that link to the person.

## Questions

**How much smaller will my images get?**

Typically 40–80% for photos at quality 75–85, with no visible difference.

**Is compression lossless?**

JPG and WebP output are lossy at the quality you choose. PNG output is re-encoded losslessly; convert to WebP for big savings.

**Is anything uploaded?**

No. All processing runs locally in your browser.

All free tools: https://orkosi.com/tools.md
