Please bookmark this page to avoid losing your image tool!

Image Wratten #25 Red Filter Effect 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) {
    // Create a new canvas element
    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');

    // Use the natural dimensions of the image to set canvas size
    // This ensures the canvas matches the actual image resolution
    const width = originalImg.naturalWidth;
    const height = originalImg.naturalHeight;

    // Guard against unloaded or zero-dimension images, though typically
    // the caller should ensure originalImg is a fully loaded Image object.
    if (width === 0 || height === 0) {
        console.warn("Original image has zero width or height. Canvas will be 1x1.");
        canvas.width = 1;
        canvas.height = 1;
        // Optionally, one could throw an error here or return originalImg if it's an error state
        return canvas;
    }

    canvas.width = width;
    canvas.height = height;

    // Draw the original image onto the canvas
    ctx.drawImage(originalImg, 0, 0, width, height);

    // Get the ImageData object, which contains the pixel data in a flat array
    // The data is stored in RGBA order (Red, Green, Blue, Alpha)
    const imageData = ctx.getImageData(0, 0, width, height);
    const data = imageData.data; // This is a Uint8ClampedArray

    // Iterate over each pixel in the image data.
    // Each pixel consists of 4 bytes (R, G, B, A), so we increment by 4.
    for (let i = 0; i < data.length; i += 4) {
        // const r = data[i];     // Red component (0-255)
        // const g = data[i + 1]; // Green component (0-255)
        // const b = data[i + 2]; // Blue component (0-255)
        // const a = data[i + 3]; // Alpha component (0-255)

        // Simulate the Wratten #25 Red Filter effect:
        // This filter strongly absorbs blue and green light, allowing red light to pass.
        // A common digital simulation is to keep the red channel and set green and blue to 0.
        // Red channel (data[i]) remains unchanged.
        data[i + 1] = 0; // Set Green component to 0
        data[i + 2] = 0; // Set Blue component to 0
        // Alpha channel (data[i + 3]) remains unchanged to preserve transparency.
    }

    // Put the modified pixel data back onto the canvas
    ctx.putImageData(imageData, 0, 0);

    // Return the canvas element with the applied effect
    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

The Image Wratten #25 Red Filter Effect Tool allows users to apply a red filter effect to images. This tool enhances the red tones while removing green and blue components, simulating the effect of a Wratten #25 red filter. It is useful for photographers and graphic designers who want to create dramatic contrasts or emphasize red hues in their images. The tool can be applied to improve artistic expressions, enhance visual storytelling in photography, and contribute to the aesthetics of graphic projects.

Leave a Reply

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

Other Image Tools:

Image Helios 44-2 Swirly Bokeh Effect Filter

Image Fujifilm ETERNA Motion Picture Film Effect Applicator

Image Fujifilm FP-100C Instant Film Effect Filter

Image Canon AE-1 Film Camera Render Effect

Photo B+W Dark Red #29 Filter Effect Application

Image Toy Camera Effect Enhancer

Photo Graflex Speed Graphic Filter Effect Tool

Image Konica Hexar AF Filter Effect Application

Image Ricoh GR Film Camera Filter Effect Application

Image Kodak Disposable Camera Filter Effect

Image Hoya Pro ND Filter Effect Application

Image Wratten #12 Yellow Filter Effect Tool

Image AGFA APX 100 Film Filter Effect Tool

Image Singh-Ray Vari-ND Filter Effect Application

Image Rollei RPX 25 Film Filter Effect Tool

Image 35mm Half-frame Camera Filter Effect

Image Kodak Vision3 250D Motion Picture Film Effect Filter

Image 120 Film Format Filter Effect

Image Lens Whacking Filter Effect Tool

Image Black and White Red Filter Effect Tool

Image Lee Medium Stopper 6-Stop ND Filter Effect Tool

Image Nikon F3 Film Camera Render Effect Tool

Image Polaroid Spectra Filter Effect Tool

Image Contax T2/T3 Filter Effect Application

Image Bronica ETRS Medium Format Filter Effect Application

Image Soap Bubble Bokeh Effect Generator

Image Center Graduated ND Filter Effect Tool

Image Breakthrough Photography X4 ND Filter Effect

Photo Filter Effect Creator for Yashica T4 Point-and-Shoot

Image AGFA APX 25 Film Filter Effect Tool

Image Singh-Ray Gold-N-Blue Polarizer Effect Tool

Image Black and White Blue Filter Effect Tool

Image Pinhole Solargraphy Effect Creator

Image Kodak Vision3 500T Motion Picture Film Effect Simulator

Image Soft Focus Filter Effect for Nikon Nikkor

Image Bergger Pancro 400 Film Filter Effect Tool

See All →