{
    "mode": "man",
    "parameter": "pamfile",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pamfile/1/json",
    "generated": "2026-06-17T19:36:48Z",
    "synopsis": "pamfile [-allimages] [file ...]",
    "sections": {
        "NAME": {
            "content": "pamfile - describe a Netpbm (PAM or PNM) file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pamfile [-allimages] [file ...]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads  one  or  more Netpbm files as input.  Writes out short descriptions of the image type,\nsize, etc.  This is mostly for use in shell  scripts,  so  the  format  is  not  particularly\npretty.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-allimages",
                    "content": "Describe  every image in each input file.  Without this option, pamfile describes only\nthe first image in each input file.  Note that before July 2000, a file could not con‐\ntain more than one image and many programs ignore all but the first.\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "pam(5), file(1)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1991 by Jef Poskanzer.\n\n\n\n06 August 2000                                 pamfile(1)",
            "subsections": []
        }
    },
    "summary": "pamfile - describe a Netpbm (PAM or PNM) file",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Describe every image in each input file. Without this option, pamfile describes only the first image in each input file. Note that before July 2000, a file could not con‐ tain more than one image and many programs ignore all but the first."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pam",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pam/5/json"
        },
        {
            "name": "file",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/file/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Describe Netpbm (PAM or PNM) files.",
        "examples": [
            {
                "description": "Describe the specified Netpbm files",
                "command": "pamfile {{path/to/file1 path/to/file2 ...}}"
            },
            {
                "description": "Describe every image in each input file (as opposed to only the first image in each file) in a machine-readable format",
                "command": "pamfile {{-a|-allimages}} -machine {{path/to/file}}"
            },
            {
                "description": "Display a count on how many images the input files contain",
                "command": "pamfile {{-cou|-count}} {{path/to/file}}"
            }
        ]
    }
}