fcjr / geticon

A tiny cross-platform library to get app icons of other applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

geticon

GoDoc Go Report Card

A tiny cross-plaform (macOS + windows) library to get app icons of other applications.

Installation

go get github.com/fcjr/geticon

Usage

import (
    "github.com/fcjr/geticon"
)

// get icon of a running application by PID
icon, err := geticon.FromPid(pid) // returns an image.Image

// get icon of an application by path
icon, err := geticon.FromPath(path) // returns an image.Image

Technical Details

On mac the image.Image returned should always be tiff encoded.

On windows the image.Image returned will be the largest available image from the apps ico set. This can either be a PNG or a BMP.

About

A tiny cross-platform library to get app icons of other applications.

License:MIT License


Languages

Language:Go 100.0%