Please bookmark this page to avoid losing your image tool!

Image Leica Yellow 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, strength = 0.5) {
    // Validate and clamp the strength parameter (0.0 to 1.0)
    strength = Math.max(0, Math.min(1, Number(strength)));

    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');

    // Use naturalWidth/Height for intrinsic image dimensions.
    // Fallback to width/height if naturalWidth/Height are not available (e.g., for a canvas source).
    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);

    // If strength is 0, no processing needed, return canvas with original image
    if (strength === 0) {
        return canvas;
    }

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

    // A yellow filter absorbs blue light, making the image appear warmer.
    // The 'strength' parameter controls how much blue is reduced.
    // We define a 'maxBlueReductionFactor' to determine the maximum percentage
    // by which the blue channel can be reduced when strength is 1.
    // For example, 0.8 means blue can be reduced by up to 80% (i.e., blue becomes 20% of original).
    const maxBlueReductionFactor = 0.8; // Blue channel will be multiplied by (1 - strength * maxBlueReductionFactor)

    for (let i = 0; i < data.length; i += 4) {
        // R = data[i]
        // G = data[i+1]
        // B = data[i+2]
        // A = data[i+3]

        const originalBlue = data[i + 2];
        
        // Calculate the reduction multiplier for the blue channel.
        // If strength = 0, blueMultiplier = 1 (no change).
        // If strength = 1, blueMultiplier = 1 - maxBlueReductionFactor.
        const blueMultiplier = 1 - (strength * maxBlueReductionFactor);
        
        data[i + 2] = originalBlue * blueMultiplier;
        
        // Note: Uint8ClampedArray automatically clamps values to [0, 255] and floors them.
    }

    // 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 ‘Image Leica Yellow Filter Effect Application’ is a web-based tool designed to apply a yellow filter effect to images, similar to how traditional photographic filters can enhance warmth and reduce blue tones in photographs. Users can adjust the strength of the effect, allowing for precise control over how much blue light is absorbed, resulting in warmer and richer images. This tool is particularly useful for photographers, graphic designers, and hobbyists who wish to give their images a vintage or artistic look, enhancing the overall color dynamics and mood of their photographs.

Leave a Reply

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

Other Image Tools:

Image Argus C3 Vintage Camera Filter Effect

Image ORWO NP22 Film Filter Effect Application

Image Wratten #25 Red Filter Effect Tool

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

See All →