{
    "mode": "man",
    "parameter": "ppmmix",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ppmmix/1/json",
    "generated": "2026-08-30T23:07:10Z",
    "synopsis": "ppmmix fadefactor ppmfile1 ppmfile2",
    "sections": {
        "NAME": {
            "content": "ppmmix - blend together two PPM images\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ppmmix fadefactor ppmfile1 ppmfile2\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\nppmmix reads two PPM images as input and mixes them together using the specified fade factor.\nThe  fade  factor may be in the range from 0.0 (only ppmfile1's image data) to 1.0 (only ppm‐\nfile2's image data).  Anything in between specifies a smooth blend between the two images.\n\nThe two images must have the same dimensions and the same maxval.  Before Netpbm 10.54 (March\n2011), they must also have the same type (PBM/PGM/PPM).\n\nThe fade factor is applied to brightness, not light intensity.  That means for  example  that\nif you have a series of images you generated using ppmmix of a black and a white image with a\nlinearly  increasing  fade  factor,  you will see an image getting linearly brighter, but the\nlight intensity will increase faster at the end.  That is because it requires more  intensity\nchange  at the bright end of the scale than at the dark end for the human eye to perceive the\nsame brightness change.  This also means that if the original images aren't  all  one  color,\nthe  mixed  image  is distorted, since the intensity relationship between pixels is different\nfrom the original image.\n\npamcomp is a more general alternative.  It allows you to mix images of different size and  to\nhave  the fade factor vary throughout the image (through the use of a transparency mask).  It\ndoes not have the same-maxval and same-type restrictions.   It  mixes  light  intensity,  not\nbrightness.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "There  are no command line options defined specifically for ppmmix, but it recognizes the op‐\ntions common to all programs based on libnetpbm (See \u001b]8;;index.html#commonoptions\u001b\\ Common Options\u001b]8;;\u001b\\ .)\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pamcomp(1), pammixmulti(1), ppm(1)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1993 by Frank Neumann\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/ppmmix.html\n\nnetpbm documentation                        23 March 2010                      Ppmmix User Manual(1)",
            "subsections": []
        }
    },
    "summary": "ppmmix - blend together two PPM images",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pamcomp",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pamcomp/1/json"
        },
        {
            "name": "pammixmulti",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pammixmulti/1/json"
        },
        {
            "name": "ppm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppm/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Blend together two PPM images.",
        "examples": [
            {
                "description": "Blend the specified PPM images using fadefactor to control the weight of each image",
                "command": "ppmmix {{fadefactor}} {{path/to/input_file1.ppm path/to/input_file2.ppm ...}} > {{path/to/output_file.ppm}}"
            }
        ]
    }
}