pamtowinicon

Convert a PAM image to a Windows ICO file. More information: <https://netpbm.sourceforge.net/doc/pamtowinicon.html>.

Install

All systems
curl cmd.cat/pamtowinicon.sh
Debian Debian
apt-get install netpbm
Ubuntu
apt-get install netpbm
Arch Arch Linux
pacman -S netpbm
image/svg+xml Kali Linux
apt-get install netpbm
CentOS
yum install netpbm-progs
Fedora
dnf install netpbm-progs
Windows (WSL2)
sudo apt-get update sudo apt-get install netpbm
OS X
brew install netpbm
Raspbian
apt-get install netpbm

Convert a PAM image to a Windows ICO file. More information: <https://netpbm.sourceforge.net/doc/pamtowinicon.html>.

  • Convert a PAM image file to an ICO file:
    pamtowinicon path/to/input_file.pam > path/to/output.ico
  • Encode images with resolutions smaller than t in the BMP format and all other images in the PNG format:
    pamtowinicon -pngthreshold t path/to/input_file.pam > path/to/output.ico
  • Make all pixels outside the non-opaque area black:
    pamtowinicon -truetransparent path/to/input_file.pam > path/to/output.ico

© tl;dr; authors and contributors