snippetbashTip
pamtowinicon — Convert a PAM image to a Windows ICO file. More information: <https://netpbm.sourceforge.net/doc/pam
Viewed 0 times
pamcommandwindowsconverticocliimagepamtowinicon
Problem
How to use the
pamtowinicon command: Convert a PAM image to a Windows ICO file. More information: <https://netpbm.sourceforge.net/doc/pamtowinicon.html>.Solution
pamtowinicon — 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 {{[-pn|-pngthreshold]}} {{t}} {{path/to/input_file.pam}} > {{path/to/output.ico}}Make all pixels outside the non-opaque area black:
pamtowinicon {{[-t|-truetransparent]}} {{path/to/input_file.pam}} > {{path/to/output.ico}}Code Snippets
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 {{[-pn|-pngthreshold]}} {{t}} {{path/to/input_file.pam}} > {{path/to/output.ico}}Make all pixels outside the non-opaque area black
pamtowinicon {{[-t|-truetransparent]}} {{path/to/input_file.pam}} > {{path/to/output.ico}}Context
tldr-pages: common/pamtowinicon
Revisions (0)
No revisions yet.