{
    "mode": "man",
    "parameter": "ppmtoilbm",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ppmtoilbm/1/json",
    "generated": "2026-05-30T06:08:13Z",
    "synopsis": "ppmtoilbm  [-maxplanes|-mp  N] [-fixplanes|-fp N] [-ham6|-ham8] [-dcbits|-dcplanesrgb] [-nor‐‐\nmal|-hamif|-hamforce|-24if|-24force| -dcif|-dcforce|-cmaponly] [-ecs|-aga] [-compress|-nocom‐‐\npress] [-cmethod type] [-mapppmfile] [-savemem] [ppmfile]",
    "sections": {
        "NAME": {
            "content": "ppmtoilbm - convert a portable pixmap into an ILBM file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ppmtoilbm  [-maxplanes|-mp  N] [-fixplanes|-fp N] [-ham6|-ham8] [-dcbits|-dcplanesrgb] [-nor‐‐\nmal|-hamif|-hamforce|-24if|-24force| -dcif|-dcforce|-cmaponly] [-ecs|-aga] [-compress|-nocom‐‐\npress] [-cmethod type] [-mapppmfile] [-savemem] [ppmfile]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads  a  portable  pixmap  as input.  Produces an ILBM file as output.  Supported ILBM types\nare:\n\nNormal ILBMs with 1-16 planes.\n\nAmiga HAM with 3-16 planes.\n\n24 bit.\n\nColor map (BMHD + CMAP chunk only, nPlanes = 0).\n\nUnofficial direct color.\n1-16 planes for each color component.\n\nChunks written:\nBMHD, CMAP, CAMG (only for HAM), BODY (not for colormap files) unofficial  DCOL  chunk\nfor direct color ILBM\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Options  marked with (*) can be prefixed with a \"no\", e.g. \"-nohamif\". All options can be ab‐\nbreviated to their shortest unique prefix.\n",
            "subsections": [
                {
                    "name": "-maxplanes | -mp n",
                    "content": "(default 5, minimum 1, maximum 16) Maximum planes to write in a normal ILBM.   If  the\npixmap  does not fit into <n> planes, ppmtoilbm writes a HAM file (if -hamif is used),\na 24bit file (if -24if is used) or a direct color file (if -dcif is  used)  or  aborts\nwith an error.\n"
                },
                {
                    "name": "-fixplanes | -fp n",
                    "content": "(min 1, max 16) If a normal ILBM is written, it will have exactly <n> planes.\n"
                },
                {
                    "name": "-hambits | -hamplanes n",
                    "content": "(default 6, min 3, max 16) Select number of planes for HAM picture.  The current Amiga\nhardware supports 6 and 8 planes, so for now you should only use this values.\n"
                },
                {
                    "name": "-normal (default)",
                    "content": "Turns off -hamif/-24if/-dcif, -hamforce/-24force/-dcforce and  -cmaponly.   Also  sets\ncompression type to byterun1.\n"
                },
                {
                    "name": "-hamif",
                    "content": ""
                },
                {
                    "name": "-24if",
                    "content": ""
                },
                {
                    "name": "-dcif",
                    "content": "Write  a  HAM/24bit/direct  color  file  if  the  pixmap does not fit into <maxplanes>\nplanes.\n"
                },
                {
                    "name": "-hamforce",
                    "content": ""
                },
                {
                    "name": "-24force",
                    "content": ""
                },
                {
                    "name": "-dcforce",
                    "content": "Write a HAM/24bit/direct color file.\n"
                },
                {
                    "name": "-dcbits | -dcplanes r g b",
                    "content": "(default 5, min 1, max 16).  Select number of bits for red, green & blue in  a  direct\ncolor ILBM.\n"
                },
                {
                    "name": "-ecs (default)",
                    "content": "Shortcut for: -hamplanes 6 -maxplanes 5\n"
                },
                {
                    "name": "-aga",
                    "content": ""
                },
                {
                    "name": "Shortcut for: -hamplanes 8 -maxplanes 8",
                    "content": ""
                },
                {
                    "name": "-ham6",
                    "content": ""
                },
                {
                    "name": "Shortcut for: -hamplanes 6 -hamforce",
                    "content": ""
                },
                {
                    "name": "-ham8",
                    "content": ""
                },
                {
                    "name": "-compress",
                    "content": ""
                },
                {
                    "name": "-cmethod none|byterun1",
                    "content": "Compress the BODY chunk.  The default compression method is byterun1.  Compression re‐\nquires building the ILBM image in memory; turning compression off allows  stream-writ‐\ning  of  the image, but the resulting file will usually be 30% to 50% larger.  Another\nalternative is the -savemem option, this will keep memory requirements for compression\nat a minimum, but is very slow.\n"
                },
                {
                    "name": "-map ppmfile",
                    "content": "Write  a  normal ILBM using the colors in <ppmfile> as the colormap. The colormap file\nalso determines the number of planes, a -maxplanes or -fixplanes option is ignored.\n"
                },
                {
                    "name": "-cmaponly",
                    "content": "Write a colormap file: only BMHD and CMAP chunks, no BODY chunk, nPlanes = 0.\n"
                },
                {
                    "name": "-savemem",
                    "content": "See the -compress option.\n"
                }
            ]
        },
        "BUGS": {
            "content": "HAM pictures will always get a grayscale colormap; a real  color  selection  algorithm  might\ngive  better results.  On the other hand, this allows row-by-row operation on HAM images, and\nall HAM images of the same depth (no. of planes) share a common colormap, which is useful for\nbuilding HAM animations.\n",
            "subsections": []
        },
        "REFERENCES": {
            "content": "Amiga ROM Kernel Reference Manual - Devices (3rd Ed.)\nAddison Wesley, ISBN 0-201-56775-X\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ppm(5), ilbmtoppm(1)\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Copyright (C) 1989 by Jef Poskanzer.\nModified October 1993 by Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)\n\n\n\n\n31 October 1993                              ppmtoilbm(1)",
            "subsections": []
        }
    },
    "summary": "ppmtoilbm - convert a portable pixmap into an ILBM file",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "(default 5, minimum 1, maximum 16) Maximum planes to write in a normal ILBM. If the pixmap does not fit into <n> planes, ppmtoilbm writes a HAM file (if -hamif is used), a 24bit file (if -24if is used) or a direct color file (if -dcif is used) or aborts with an error."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "(min 1, max 16) If a normal ILBM is written, it will have exactly <n> planes."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "(default 6, min 3, max 16) Select number of planes for HAM picture. The current Amiga hardware supports 6 and 8 planes, so for now you should only use this values."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Turns off -hamif/-24if/-dcif, -hamforce/-24force/-dcforce and -cmaponly. Also sets compression type to byterun1."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Write a HAM/24bit/direct color file if the pixmap does not fit into <maxplanes> planes."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Write a HAM/24bit/direct color file."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "(default 5, min 1, max 16). Select number of bits for red, green & blue in a direct color ILBM."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Shortcut for: -hamplanes 6 -maxplanes 5"
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Compress the BODY chunk. The default compression method is byterun1. Compression re‐ quires building the ILBM image in memory; turning compression off allows stream-writ‐ ing of the image, but the resulting file will usually be 30% to 50% larger. Another alternative is the -savemem option, this will keep memory requirements for compression at a minimum, but is very slow."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Write a normal ILBM using the colors in <ppmfile> as the colormap. The colormap file also determines the number of planes, a -maxplanes or -fixplanes option is ignored."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Write a colormap file: only BMHD and CMAP chunks, no BODY chunk, nPlanes = 0."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "See the -compress option."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "ppm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
        },
        {
            "name": "ilbmtoppm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ilbmtoppm/1/json"
        }
    ]
}