sallar / GetAppIcon

Get App icons by pid on macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

$ swift build -c release
$ .build/release/GetAppIcon --help
Usage:

    $ .build/release/GetAppIcon <pid>

Arguments:

    pid - PID of the app

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

Example

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

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

About

Get App icons by pid on macOS

License:MIT License


Languages

Language:Swift 100.0%