# Image Boolean OR

Apply bitwise OR operation between two images to create union mask

> Canonical page: https://elysiatools.com/en/tools/image-boolean-or

- **Category:** Design

- **Keywords:** image, boolean, or, mask, union, bitwise, combine, merge

## Overview

The Image Boolean OR tool allows you to combine two images by applying a bitwise OR operation, effectively creating a union mask of the input files.

## Inputs

- **First Image** (file): First image for OR operation
- **Second Image** (file): Second image for OR operation
- **Output Format** (select): Output format for the result image (PNG recommended for transparency)
- **Quality (1-100)** (number): Output quality for lossy formats

## When to use

- When you need to merge two separate binary masks into a single unified shape.
- When you want to combine overlapping visual elements from two distinct image layers.
- When preparing image data for computer vision tasks that require union-based segmentation.

## How it works

- Upload your first image file to serve as the primary base layer.
- Upload your second image file to be combined with the first.
- Select your preferred output format and adjust the quality settings if necessary.
- Process the images to generate a new file containing the combined bitwise union.

## Use cases

- Merging two separate black-and-white silhouette masks into one.
- Combining distinct feature maps for image processing workflows.
- Creating composite visual overlays for graphic design projects.

## Frequently asked questions

### What does the OR operation do to my images?

It compares the pixels of both images and keeps the pixel if it is present in either the first or the second image, creating a union of both.

### Which file formats are supported?

You can upload JPEG, PNG, WebP, GIF, BMP, and TIFF files.

### Why should I choose PNG as the output format?

PNG is recommended because it supports transparency, which is ideal for preserving the integrity of masks and combined shapes.

### Is there a file size limit?

Yes, each uploaded image file must be 10MB or smaller.

### Can I adjust the output quality?

Yes, you can set the quality between 1 and 100 for lossy formats like JPEG or WebP.

## Related tools

- [Image Boolean AND](https://elysiatools.com/en/tools/image-boolean-and): Apply bitwise AND operation between two images to create intersection mask
- [Image Boolean XOR](https://elysiatools.com/en/tools/image-boolean-xor): Apply bitwise XOR operation between two images to create difference mask
- [Image Boolean NOT](https://elysiatools.com/en/tools/image-boolean-not): Apply bitwise NOT operation to invert all pixel values in an image
- [Image Difference](https://elysiatools.com/en/tools/image-difference): Calculate the difference between two images to identify changes or create comparison masks
- [Image Emboss Kernel](https://elysiatools.com/en/tools/image-emboss-kernel): Apply emboss convolution kernel to create 3D raised surface effects on images
- [Image Multiply Blend](https://elysiatools.com/en/tools/image-multiply): Apply multiply blend mode between two images to create shadow effects and darken colors
- [Image Overlay Blend](https://elysiatools.com/en/tools/image-overlay): Apply overlay blend mode between two images to enhance contrast and create dramatic effects
- [Image Saturation Adjustment](https://elysiatools.com/en/tools/image-saturation): Adjust color saturation levels to make colors more vivid or create grayscale effects

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing TypeScript Samples](https://elysiatools.com/en/samples/web-image-processing-typescript): Web TypeScript image processing examples including image read/save, scaling, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Binary Image Thresholding, Morphology, and Mask Tools](https://elysiatools.com/en/hubs/binary-image-thresholding-and-morphology): Turn images into binary masks, compare threshold methods, repair foreground shapes, and combine masks with morphological and Boolean operations.
