Please bookmark this page to avoid losing your image tool!

Photo B+W Dark Red #29 Filter Effect Application

(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');

    // Use naturalWidth/Height for intrinsic image dimensions
    const imgWidth = originalImg.naturalWidth || originalImg.width;
    const imgHeight = originalImg.naturalHeight || originalImg.height;

    canvas.width = imgWidth;
    canvas.height = imgHeight;

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

    // Try to get image data. This can fail for cross-origin images without CORS.
    let imageData;
    try {
        imageData = ctx.getImageData(0, 0, imgWidth, imgHeight);
    } catch (e) {
        console.error("Error getting image data for processing: ", e);
        // If getImageData fails (e.g. tainted canvas), return the canvas with the original image.
        // The original image is already drawn, so this is a graceful fallback.
        return canvas;
    }
    
    const data = imageData.data;

    // Coefficients for simulating a B+W conversion as if through a Dark Red #29 filter.
    // A Wratten #29 filter is a deep red filter. It passes red light, strongly attenuates
    // green light, and almost completely blocks blue light.
    // This results in reds and yellows appearing very light, greens appearing dark,
    // and blues appearing very dark or black in the B+W image.
    const rCoeff = 0.9; // Red channel contribution to grayscale value
    const gCoeff = 0.1; // Green channel contribution
    const bCoeff = 0.0; // Blue channel contribution (effectively blocked)

    for (let i = 0; i < data.length; i += 4) {
        const r = data[i];    // Original Red component
        const g = data[i+1];  // Original Green component
        const b = data[i+2];  // Original Blue component
        // data[i+3] is the Alpha component, which we'll leave unchanged.

        // Calculate the grayscale value based on the filter's characteristics.
        // The sum of these coefficients (0.9 + 0.1 + 0.0 = 1.0) means that a
        // pure white pixel (255, 255, 255) will result in 
        // gray = 255*0.9 + 255*0.1 + 255*0.0 = 229.5 + 25.5 + 0 = 255.
        // So, clamping to 255 is not strictly necessary with these coefficients
        // if input values are within 0-255.
        let gray = (r * rCoeff) + (g * gCoeff) + (b * bCoeff);
        
        // Assign the calculated grayscale value to R, G, and B components
        data[i] = gray;
        data[i+1] = gray;
        data[i+2] = gray;
    }

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

The Photo B+W Dark Red #29 Filter Effect Application allows users to transform their images into black and white with a distinctive dark red filter effect. This tool simulates how images would appear when viewed through a Wratten #29 filter, emphasizing reds and yellows while darkening greens and blues. It is particularly useful for photographers and graphic designers looking to create dramatic monochrome images or to edit photos for artistic purposes. The resulting images can be utilized in various creative projects, such as digital art, photo editing, or social media posts.

Leave a Reply

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

Other Image Tools:

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

Image Agfa Optima Filter Effect Application

Image Technicolor 3-Strip Process Filter Effect

Image Cyanotype Process Filter Effect

Image Black and White with Orange #21 Filter Effect Tool

Image Bleach Bypass Effect Filter

See All →