← 返回命令列表

Linux command

winicontopam 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Convert Windows icon to PAM

winicontopam [input.ico] > [output.pam]

Extract a specific image index

winicontopam -image=[0] [input.ico] > [output.pam]

Extract all images as a multi-image PAM

winicontopam -allimages [input.ico] > [output.pam]

Include AND mask as a fifth channel

winicontopam -andmasks [input.ico] > [output.pam]

说明

winicontopam converts Microsoft Windows ICO or CUR files into Netpbm PAM images with an alpha channel. Windows icon files may contain several images at different resolutions and color depths; by default, winicontopam picks the highest-quality one (largest size, then most bits per pixel). Part of the Netpbm toolkit. Read from stdin when no file is given.

参数

-image=_N_
Extract image at index _N_ (zero-based). Cannot be combined with -allimages.
-allimages
Extract every image in the ICO/CUR file as a multi-image PAM stream.
-andmasks
Emit five-channel PAM with the AND mask as the fifth plane (in addition to RGBA).
-verbose
Print informational messages about the input file.
-quiet
Suppress informational output (standard libnetpbm option).

FAQ

What is the winicontopam command used for?

winicontopam converts Microsoft Windows ICO or CUR files into Netpbm PAM images with an alpha channel. Windows icon files may contain several images at different resolutions and color depths; by default, winicontopam picks the highest-quality one (largest size, then most bits per pixel). Part of the Netpbm toolkit. Read from stdin when no file is given.

How do I run a basic winicontopam example?

Run `winicontopam [input.ico] > [output.pam]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -image=_N_ do in winicontopam?

Extract image at index _N_ (zero-based). Cannot be combined with -allimages.