# Multiply Images

This function block allows users to perform pixel-wise multiplication of two images. This operation is particularly useful in image processing tasks where you want to apply a scaling effect based on the second input image.

## 📥 Inputs <a href="#inputs" id="inputs"></a>

`Image Any` First image to be multiplied.

`Image Any` Second image to be multiplied against the first image.

## 📤 Outputs <a href="#outputs" id="outputs"></a>

`Image Any` The result of the pixel-wise multiplication of the two input images.

## 🎨 Features <a href="#features" id="features"></a>

`Pixel-wise Operation` This block performs multiplication on a pixel level, allowing for powerful image manipulation capabilities.

`Shape Validation` It ensures both input images are of the same dimensions before performing multiplication, providing an error message if they are not.

## 📝 Usage Instructions <a href="#usage" id="usage"></a>

1. **Input Images**: Connect two images to the input sockets. Both images must be of the same size.
2. **Evaluate**: Run the block to perform the multiplication. The output will be the resulting image obtained through pixel-wise multiplication.

## 📊 Evaluation <a href="#evaluation" id="evaluation"></a>

Upon execution, this function block outputs an image that represents the product of pixel values from the two input images.

## 💡 Tips and Tricks <a href="#tips-and-tricks" id="tips-and-tricks"></a>

<details>

<summary>Scaling Brightness</summary>

To adjust the brightness of an image, you can multiply it by a white image (for example, an image of all pixel values being 1). This helps in scaling up or down the brightness.

</details>

<details>

<summary>Enhancing Image Features</summary>

Using masks or other images with high contrast can highlight certain features of the first image while diminishing others during multiplication.

</details>

<details>

<summary>Image Resolution</summary>

If your images differ in size, use the `Image Resize` function block to scale one of the images to match the other before applying this function block.

</details>

## 🛠️ Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

<details>

<summary>Dimension Mismatch Error</summary>

If you encounter an error about image dimensions not matching, verify that both input images are of the same size. Adjust sizes using the `Image Resize` function block.

</details>
