# Billedkomprimering

> Komprimér billeder online gratis med en kvalitetsjustering og en direkte før-og-efter-visning. Kører i din browser, intet uploades. Perfekt til hurtigere websites.

Free tool by Orkosi. Page: https://orkosi.com/tools/image-compress?lang=da

Gør billeder lettere til web. Vælg et kvalitetsniveau, sammenlign før og efter, og download filer, der indlæses hurtigere og opnår bedre placeringer.

1. Slip op til 50 billeder.
2. Indstil kvalitet og eventuelle maksimumsmål.
3. Sammenlign størrelserne, og download eller lav en ZIP-fil.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `image_url` | text | yes | Adresse på billedet. Et offentligt https-link til et JPG-, PNG-, WebP-, GIF- eller AVIF-billede på op til 15 MB. |
| `quality` | integer | no | Kvalitet. 75 til 85 er svært at skelne fra originalen. Default: 80. |
| `max_dimension` | integer | no | Længste side i pixels, højst. Lad feltet stå tomt for at bevare størrelsen. |
| `format` | "auto" \| "jpg" \| "webp" | no | Outputformat. 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

**Hvor meget mindre bliver mine billeder?**

Typisk 40–80 % for fotos ved kvalitet 75–85, uden synlig forskel.

**Er komprimeringen tabsfri?**

JPG- og WebP-output komprimeres med kvalitetstab efter den kvalitet, du vælger. PNG-output omkodes tabsfrit. Konvertér til WebP for store besparelser.

**Uploades noget?**

Nej. Al behandling kører lokalt i din browser.

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