---
name: image
description: "Image Optimizer (Image Optimizer) via devops.majbase.com's free public API, no key required. Keywords: compress image, reduce image size, оптимизирай снимка, намали размер на снимка, compress photo."
---

# Image Optimizer

Image Optimizer. Calls devops.majbase.com's free public API — no API key or authentication required.

## Endpoint

```
POST https://devops.majbase.com/image/tinify
```

## Request / Response

```
API: POST /image/tinify
  form-data:
    file=@image.(png|jpg|jpeg|webp)
    width, height (optional; leave empty to keep original)
    compression (optional: low|balanced|high|maximum; default balanced)
Returns the optimized file directly (attachment).
```

## Example

```bash
curl -sS -X POST https://devops.majbase.com/image/tinify \
    -F "file=@test.png" \
    -o optimized_test.png
```

```bash
curl -sS -X POST https://devops.majbase.com/image/tinify \
    -F "file=@photo.jpg" \
    -F "width=1024" \
    -F "height=1024" \
    -o optimized_photo.jpg
```

```bash
curl -sS -X POST https://devops.majbase.com/image/tinify \
    -F "file=@image.webp" \
    -F "width=800" \
    -F "height=800" \
    -o cleaned.webp
```

```bash
curl -sS -X POST https://devops.majbase.com/image/tinify \
    -F "file=@photo.jpg" \
    -F "compression=maximum" \
    -o tiny_photo.jpg
```

## Notes

- No API key or authentication required.
- Full interactive tool: https://devops.majbase.com/image/
