pamtowinicon
Convert a PAM image to a Windows ICO file. tldr-pages
On several platforms
Several platforms
Convert a PAM image file to an ICO file
pamtowinicon path/to/input_file.pam >path/to/output.icoIdentifyEncode 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.icoIdentifyMake all pixels outside the non-opaque area black
pamtowinicon -truetransparent path/to/input_file.pam >path/to/output.icoIdentify