---
title: "Mask From Image"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/image/mask/maskfromimage
markdown: https://docs.nodetool.ai/nodes/lib/image/mask/maskfromimage.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/image/mask/maskfromimage.md
---

# Mask From Image

**Type:** `lib.image.mask.FromImage`

**Namespace:** `lib.image.mask`

## Description

Derive a mask from an image channel.
    image, mask, alpha, channel

    Modes: 0 alpha / 1 luminance / 2 R / 3 G / 4 B / 5 max channel.

## Properties

_(none)_

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `image` |  |

## Related Nodes

Browse other nodes in the [lib.image.mask](./) namespace.
