HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

winicontopam — Convert a Windows ICO file to a PAM file. More information: <https://netpbm.sourceforge.net/doc/wini

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandwindowspamconverticoclifilewinicontopam

Problem

How to use the winicontopam command: Convert a Windows ICO file to a PAM file. More information: <https://netpbm.sourceforge.net/doc/winicontopam.html>.

Solution

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

Read an ICO file and convert the best quality image contained therein to the PAM format:
winicontopam {{path/to/input_file.ico}} > {{path/to/output.pam}}


Convert all images in the input file to PAM:
winicontopam {{[-al|-allimages]}} {{path/to/input_file.ico}} > {{path/to/output.pam}}


Convert the n'th image in the input file to PAM:
winicontopam {{[-i|-image]}} {{n}} {{path/to/input_file.ico}} > {{path/to/output.pam}}


If the image(s) to be extracted contain graded transparency data and an AND mask, write the AND mask into the fifth channel of the output PAM file:
winicontopam {{[-an|-andmasks]}} {{path/to/input_file.ico}} > {{path/to/output.pam}}

Code Snippets

Read an ICO file and convert the best quality image contained therein to the PAM format

winicontopam {{path/to/input_file.ico}} > {{path/to/output.pam}}

Convert all images in the input file to PAM

winicontopam {{[-al|-allimages]}} {{path/to/input_file.ico}} > {{path/to/output.pam}}

Convert the n'th image in the input file to PAM

winicontopam {{[-i|-image]}} {{n}} {{path/to/input_file.ico}} > {{path/to/output.pam}}

If the image(s) to be extracted contain graded transparency data and an AND mask, write the AND mask into the fifth channel of the output PAM file

winicontopam {{[-an|-andmasks]}} {{path/to/input_file.ico}} > {{path/to/output.pam}}

Context

tldr-pages: common/winicontopam

Revisions (0)

No revisions yet.