Please bookmark this page to avoid losing your image tool!

Image Color And Opacity Adjustment Tool

(Free & Supports Bulk Upload)

Drag & drop your images here or

The result will appear here...
You can edit the below JavaScript code to customize the image tool.
function processImage(originalImg, redMultiplier = 1, greenMultiplier = 1, blueMultiplier = 1, opacity = 1, redOffset = 0, greenOffset = 0, blueOffset = 0) {
    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');
    
    // Set canvas dimensions to match the original image
    canvas.width = originalImg.naturalWidth || originalImg.width;
    canvas.height = originalImg.naturalHeight || originalImg.height;
    
    // Draw the image onto the canvas
    ctx.drawImage(originalImg, 0, 0, canvas.width, canvas.height);
    
    // Retrieve image data
    const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
    const data = imageData.data;
    
    // Ensure inputs are parsed as floats (in case strings are passed)
    const rMult = parseFloat(redMultiplier);
    const gMult = parseFloat(greenMultiplier);
    const bMult = parseFloat(blueMultiplier);
    const aMult = parseFloat(opacity);
    const rOff = parseFloat(redOffset);
    const gOff = parseFloat(greenOffset);
    const bOff = parseFloat(blueOffset);
    
    // Iterate over all pixels and adjust color/opacity
    // Note: data is a Uint8ClampedArray, meaning it will automatically clamp values between 0 and 255
    for (let i = 0; i < data.length; i += 4) {
        data[i]     = data[i]     * rMult + rOff; // Red
        data[i + 1] = data[i + 1] * gMult + gOff; // Green
        data[i + 2] = data[i + 2] * bMult + bOff; // Blue
        data[i + 3] = data[i + 3] * aMult;        // Alpha (Opacity)
    }
    
    // Put the processed image data back onto the canvas
    ctx.putImageData(imageData, 0, 0);
    
    return canvas;
}

Free Image Tool Creator

Can't find the image tool you're looking for?
Create one based on your own needs now!

Description

This tool allows you to fine-tune the visual properties of an image by adjusting its color channels and transparency. You can modify the red, green, and blue levels using both multipliers for scaling intensity and offsets for shifting color balance, as well as adjust the overall opacity. This is useful for tasks such as color grading, correcting color casts, creating watermarks, or preparing images for layered graphic design compositions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Other Image Tools:

The Lion King VHS Mar 3 1995 Image

The Lion King Hamtaro Character Cast Reimaginer

Audio Transcription and Identification Tool

The Lion King Hamtaro Character Role Swap Image Generator

Audio to Image Fanfare Visualizer Tool

Audio Clip of Universal Pictures Fanfares

Audio File to Image Converter

Universal Pictures Fanfare Audio Identifier

Universal Pictures Fanfare Audio Identification Tool

Universal Pictures Fanfare Audio Comparison Tool

Universal Pictures Fanfare Audio Search Tool

Universal Pictures Fanfare Audio Player

Universal Pictures David Newman Fanfare Audio Player

Universal Pictures Mar 15 2002 David Newman Fanfare Audio Player

AI Movie Trailer Generator

Anna Pavlova Experiment Photo Viewer

Image Text Overlay Tool for Russian Phrases

Photo Text Sticker Overlay Tool

Teeth Photo and Drawing Generator

Image Drawing Game Generator

No valid description provided for an image utility tool

Unrecognized Description

Image Search Tool for Cookies Cartoons and Medicinal Mud

Image Text Label Adder

Image Bouquet and Calm Theme Creator

Image From Text Prompt Generator

Image Gingerbread/Wish/Spoon Sticker Adder

Big Hero 6 The Series AU Image Replacer

Image Big Hero 6 To Big Hero 6 The Series AU Replacer

Audio and Video Big Hero 6 Series Alternate Universe Replacement Tool

Big Hero 6 The Series Alternate Universe Audio and Video Replacer Tool

Audio and Video Big Hero 6 Alternate Universe Replacement Tool

Ice Age 2002 Nogai Dub Cast Information Tool

Audio File of Universal Pictures David Newman Fanfare

Audio to Image Fanfare Generator

Audio File Not Supported

See All →