Skip to content

konbu310/GetAppIcon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GetAppIcon

Get app icons by Application Path 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 <path>

Arguments:

    appPath - Path of the app

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

Example

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

$ .build/release/GetAppIcon /Applications/Safari.app --size 512 --encoding buffer > icon.png

About

Get App icons by path on macOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 96.2%
  • Makefile 3.8%