An open API service indexing awesome lists of open source software.

https://github.com/sallar/getappicon

Get App icons by pid on macOS
https://github.com/sallar/getappicon

command-line command-line-tool image-processing macos swift

Last synced: about 1 year ago
JSON representation

Get App icons by pid on macOS

Awesome Lists containing this project

README

          

# GetAppIcon

Get app icons by PID on macOS. Returns a `base64` encoded data string which can be used for displaying or manipulating the resulting image.

## Usage

```bash
$ swift build -c release
```

```bash
$ .build/release/GetAppIcon --help
Usage:

$ .build/release/GetAppIcon

Arguments:

pid - PID of the app

Options:
--size [default: 32] - Size of the output icon
--encoding [default: base64] - Encoding of output icon
```

## Example

```bash
$ .build/release/GetAppIcon 814 --size 512
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAA...

$ .build/release/GetAppIcon 292 --size 512 --encoding buffer > icon.png
```