# App icon pack for iOS and Android

Make every iOS and Android app icon size as PNG files from one 1024 x 1024 image.

Upload one square image of 1024 x 1024 pixels or more. iOS icons are made at 20, 29, 40, 58, 60, 76, 80, 87, 120, 152, 167, 180 and 1024 pixels (ios-20.png to ios-1024.png). Android launcher icons are made at 48 (mdpi), 72 (hdpi), 96 (xhdpi), 144 (xxhdpi) and 192 (xxxhdpi) pixels, plus the 512 pixel Play Store icon (android-mdpi-48.png to android-play-store-512.png).

- Endpoint: `POST https://setget.net/v1/tools/app-icon-pack` with JSON `{"input": {...}}` (add `"wait": 30` to hold the reply until the job finishes)
- MCP: `run_tool` with `slug` = `app-icon-pack`
- Page: https://setget.net/tools/app-icon-pack

## Files in, files out

This is a file tool. Its file inputs take file references, not file contents and not web addresses.

- Get a reference by uploading: `curl -T FILE https://setget.net/drop/` prints a line `ref  <id>/f1`. Or `POST https://setget.net/v1/drops` with `{"files":[{"name","size"}]}`, PUT the bytes to the returned `upload.url` with the listed headers, and use the file's `ref`. Over MCP use the `drop` tool. A file under about 700 KB can also be sent in place as a `data:<type>;base64,<content>` URI.
- Uploads are at most 100 MB per file, are readable by anyone with the link, and expire (one hour by default). Programs are refused.
- The tool runs as a job. The reply is `{"tool", "ms", "result", "files", "job"}`: `result` is JSON, and every result file comes back in `files` as `{"name", "size", "content_type", "kind", "url", "ref"}`. Download it from `url`, or pass `ref` as the input of another file tool.
- A job still running when the wait ends answers 202 with `job`. Follow it with `GET https://setget.net/v1/jobs/<id>?wait=30`, or stream progress from `GET https://setget.net/v1/jobs/<id>/events` (over MCP: the `job` tool). A person can watch it at `job.url`.

## Inputs

- `image` (required, file, a file reference such as `DROP_ID/f1`, accepts image): The icon artwork. Square and at least 1024 x 1024 pixels works best.
- `platforms` (optional, string, one of `both`, `ios`, `android`, default `"both"`): Which icons to make.
- `background` (optional, string, default `"#ffffff"`): Colour behind transparent areas, around a non-square image and in any padding. iOS icons are always solid: transparent becomes white there.
- `padding` (optional, integer, default `0`, range 0..40): Empty space on every side, as a percentage of the icon size.

## Example 1: All iOS and Android sizes

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample-transparent.png](https://setget.net/static/samples/sample-transparent.png).

```json
{"input":{"image":"DROP_ID/f1"},"wait":30}
```

## Example 2: Android icons with transparency kept

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample-transparent.png](https://setget.net/static/samples/sample-transparent.png).

```json
{"input":{"image":"DROP_ID/f1","platforms":"android","background":"transparent"},"wait":30}
```

**Why are my iOS icons not transparent?** Apple rejects app icons with transparency, so iOS icons are always placed on the background colour (white if you asked for transparent).

**What if my image is smaller than 1024 pixels?** The icons are still made, but the larger ones are enlarged and will look soft. The result carries a warning when this happens.

**Are the corners rounded?** No. iOS and Android round the corners themselves, so upload square artwork.
