Linux command
pamfile 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Show image info
pamfile [image.pam]
Machine-readable output
pamfile -machine [image.pam]
Show only image dimensions
pamfile -size [image.pam]
Count images in a multi-image file
pamfile -count [image.pam]
Describe all images in a multi-image file
pamfile -allimages [image.pam]
Show multiple files
pamfile [image1.pam] [image2.pam]
说明
pamfile reads one or more Netpbm image files and writes out short descriptions of the image type, dimensions, depth, maxval, and format. It supports PAM, PBM, PGM, and PPM formats. Part of the Netpbm suite. At most one of -count, -machine, or -size may be specified.
参数
- -allimages
- Describe every image in each input file, not just the first.
- -comments
- Include comments from the header of PAM images.
- -count
- Display only a count of how many images are in each input file.
- -machine
- Machine-parseable output. Reports format, subformat, width, height, depth, maxval, and tuple type as space-separated tokens, one line per image.
- -size
- Output only the width and height of the image, space-separated.
FAQ
What is the pamfile command used for?
pamfile reads one or more Netpbm image files and writes out short descriptions of the image type, dimensions, depth, maxval, and format. It supports PAM, PBM, PGM, and PPM formats. Part of the Netpbm suite. At most one of -count, -machine, or -size may be specified.
How do I run a basic pamfile example?
Run `pamfile [image.pam]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -allimages do in pamfile?
Describe every image in each input file, not just the first.