{
    "mode": "man",
    "parameter": "pbmtomda",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pbmtomda/1/json",
    "generated": "2026-06-15T14:25:41Z",
    "synopsis": "pbmtomda [-d][-i][--] [ pbmfile ]",
    "sections": {
        "NAME": {
            "content": "pbmtomda - convert a portable bitmap to a Microdesign .mda\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pbmtomda [-d][-i][--] [ pbmfile ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads  a portable bitmap file as input.  Reads from stdin if input file is omitted.  Produces\na MicroDesign 2 area file (.MDA) as output.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-d",
                    "content": "croDesign files.\n",
                    "flag": "-d"
                },
                {
                    "name": "-i",
                    "content": "--     End of options (use this if the filename starts with \"-\")\n",
                    "flag": "-i"
                }
            ]
        },
        "BUGS": {
            "content": "There's  no way to produce files in MicroDesign 3 format. MD3 itself and mdatopbm(1) can read\nfiles in either format.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "mdatopbm(1), pbm(5)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1999 John Elliott <jce@seasip.demon.co.uk>.\n\n\n\n\n3 June 1999                                 pbmtomda(1)",
            "subsections": []
        }
    },
    "summary": "pbmtomda - convert a portable bitmap to a Microdesign .mda",
    "flags": [
        {
            "flag": "-d",
            "long": null,
            "arg": null,
            "description": "croDesign files."
        },
        {
            "flag": "-i",
            "long": null,
            "arg": null,
            "description": "-- End of options (use this if the filename starts with \"-\")"
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "mdatopbm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/mdatopbm/1/json"
        },
        {
            "name": "pbm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pbm/5/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Convert a PBM image to a Microdesign MDA file.",
        "examples": [
            {
                "description": "Convert a PBM image to a MDA file",
                "command": "pbmtomda {{path/to/image.pbm}} > {{path/to/output.mda}}"
            },
            {
                "description": "Invert the colors in the input image",
                "command": "pbmtomda -i {{path/to/image.pbm}} > {{path/to/output.mda}}"
            },
            {
                "description": "Halve the input image's height",
                "command": "pbmtomda -d {{path/to/image.pbm}} > {{path/to/output.mda}}"
            }
        ]
    }
}