{
    "mode": "man",
    "parameter": "pamendian",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/pamendian/json",
    "generated": "2026-10-06T07:53:45Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "pamendian - reverse endianness of a Netpbm image\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "pamendian",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\nAll Netpbm formats that have samples in pure binary format with multiple bytes are defined to\nhave them in big endian (most significant byte first) order.  However, there exist variations\non  these formats, primarily developed before official multibyte Netpbm formats existed, that\nare identical to Netpbm formats in every respect except that samples  are  in  little  endian\n(least significant byte first) order.\n\npamendian  reverses  the byte order of the sample to convert between the two formats.  If the\ninput is true PAM, PGM, or PPM, the output is the little endian variation on that format, and\nvice versa.\n\nThe X Window System viewer xv expects the little endian variation of PGM and PPM.\n\nPrograms that come with the Independent Jpeg Group's JPEG library are known to use the little\nendian variation of PGM and PPM.\n\nThe reason some programs use this variant is that at one time during  Netpbm's  dark  age(1),\nthere was a version of Netpbm around that used it.  But it was never formally specified.\n\nThis program takes input only on Standard Input.  Its output is always on Standard Output.\n\nYou  should  never  have  to use this program with images generated by programs in the Netpbm\npackage or programs that use the Netpbm libraries.  If you do, that probably means  something\nneeds  to be fixed in those programs.  The Netpbm converter for any graphics format that rep‐\nresents numbers in little endian form should properly reverse the  bytes  to  create  correct\nNetpbm output.\n\nIf  you  create  a Netpbm image from a generic stream of samples, using rawtopgm or rawtoppm,\nuse options on those programs to declare the endianness of your input, thus creating  correct\nendianness in your PGM or PPM output.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "There  are  no command line options defined specifically for pamendian, but it recognizes the\noptions common to all programs based on libnetpbm (See  Common Options .)\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pamdepth(1), rawtopgm(1), rawtoppm(1), pnm(1)\n",
            "subsections": []
        },
        "DOCUMENT SOURCE": {
            "content": "This manual page was generated by the Netpbm tool 'makeman' from  HTML  source.   The  master\ndocumentation is at\n\nhttp://netpbm.sourceforge.net/doc/pamendian.html\n\nnetpbm documentation                        16 March 2002                   Pamendian User Manual(1)",
            "subsections": []
        }
    },
    "summary": "pamendian - reverse endianness of a Netpbm image",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pamdepth",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pamdepth/1/json"
        },
        {
            "name": "rawtopgm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/rawtopgm/1/json"
        },
        {
            "name": "rawtoppm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/rawtoppm/1/json"
        },
        {
            "name": "pnm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pnm/1/json"
        }
    ]
}