Please bookmark this page to avoid losing your image tool!

Photo Infrared 720nm 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) {
    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d', { willReadFrequently: true });

    // Use naturalWidth/Height for the intrinsic dimensions of the image,
    // fallback to width/height if naturalWidth/Height are not available (e.g. for a canvas source).
    const width = originalImg.naturalWidth || originalImg.width;
    const height = originalImg.naturalHeight || originalImg.height;

    if (width === 0 || height === 0) {
        // This can happen if the image isn't loaded yet or is an empty image.
        // Return a small, empty canvas or throw an error.
        console.warn("Original image has zero width or height. Returning an empty 1x1 canvas.");
        canvas.width = 1;
        canvas.height = 1;
        return canvas;
    }

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

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

    // Get the pixel data from the canvas
    const imageData = ctx.getImageData(0, 0, width, height);
    const data = imageData.data; // data is a Uint8ClampedArray: R, G, B, A, R, G, B, A, ...

    // Apply the Infrared 720nm filter effect
    // This filter primarily passes deep red and near-infrared (NIR) light.
    // In a standard digital camera, the red channel sensor pixels are most sensitive
    // to red light and also to any NIR light that leaks through the camera's IR-cut filter.
    // So, we'll use the original red channel's value as the primary basis for the filtered image's intensity.
    // The resulting image is often monochrome or has a characteristic reddish/brownish tint.

    for (let i = 0; i < data.length; i += 4) {
        const r_original = data[i]; // Original Red value
        // const g_original = data[i + 1]; // Original Green value (not directly used for intensity in this model)
        // const b_original = data[i + 2]; // Original Blue value (not directly used for intensity in this model)
        // const a_original = data[i + 3]; // Original Alpha value

        // The "intensity" of light passing the 720nm filter is approximated by the red channel.
        const intensity = r_original;

        // Set the new RGB values for the pixel.
        // The output red channel directly uses this intensity.
        // The output green and blue channels are scaled versions of this intensity
        // to produce a desaturated reddish-brown tint.
        // Values are automatically clamped to the 0-255 range by the Uint8ClampedArray.
        data[i]     = intensity;          // New Red
        data[i + 1] = intensity * 0.7;    // New Green (creates a less saturated red, shifting towards orange/brown)
        data[i + 2] = intensity * 0.5;    // New Blue (further enhances the reddish-brown tint)
        // data[i + 3] (alpha) remains unchanged.
    }

    // Put the modified pixel 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

The Photo Infrared 720nm Filter Effect Tool allows users to apply a specialized infrared filter effect to their images, simulating the aesthetic characteristic of infrared photography. This tool primarily enhances the red channel data of images to create a monochrome or warm reddish/brownish tint, which is commonly associated with infrared light capturing. It is useful for photographers, artists, and graphic designers looking to achieve unique visual styles or effects in their images, as well as for those interested in exploring the artistic potential of infrared photography.

Leave a Reply

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

Other Image Tools:

Image 10-Stop ND Filter Effect Tool

Photo Full Spectrum Filter Effect Tool

Image Motion Blur Filter Effect Tool

Image Panavision Film Look Filter Effect Tool

Image Rolleiflex TLR Camera Filter Effect Tool

Image Lee 85B Warming Filter Effect Application

Image Tiffen Black Pro-Mist Filter Effect Tool

Image Fomapan 100 Filter Effect Application

Image Lens Flare Filter Effect Tool

Image Ilford XP2 Super Filter Effect Application

Image Cinemascope Filter Effect Applicator

Image Dubblefilm Solar Filter Effect Application

Image Night Vision Filter Effect Tool

Image Tintype Filter Effect Application

Image Color Graduated Filter Effect Tool

Image Agfa Vista Filter Effect Application

Image Schneider Hollywood Black Magic Filter Effect Tool

Image TMax 400 Filter Effect Tool

Image Double Exposure Filter Effect Tool

Image Fujichrome Velvia 50 Filter Effect Application

Image Revolog Texture Film Filter Effect Tool

Image Lomography Metropolis Filter Effect Application

Image Variable ND Filter Effect Tool

Image 8mm Movie Film Filter Effect Application

Image TMax 100 Filter Effect Application

Image Fog Filter Effect Tool

Image Ektachrome E100 Filter Effect Application

Image RED Cinema Camera Filter Effect Tool

Image Reverse Graduated ND Filter Effect Tool

Image Kaleidoscope Filter Effect Tool

Image Platinum Palladium Print Filter Effect

Image Light Leak Filter Effect Tool

Image Moire Pattern Filter Effect Tool

Image Pull Processing Filter Effect Tool

Photo Ambrotype Filter Effect Tool

Image Cross-Screen Star Filter Effect Tool

See All →