Please bookmark this page to avoid losing your image tool!

Image Warming 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, intensity = 30) {
    // intensity: A number typically from 0 (no effect) to 100 (strong effect). Default is 30.
    // Higher values increase the warming effect.
    // Ensures intensity is not negative, as this is a warming filter.
    const safeIntensity = Math.max(0, parseFloat(String(intensity)));

    const canvas = document.createElement('canvas');
    canvas.width = originalImg.naturalWidth;
    canvas.height = originalImg.naturalHeight;
    const ctx = canvas.getContext('2d');

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

    // If intensity is 0, no effect is applied, return the canvas with the original image
    if (safeIntensity === 0) {
        return canvas;
    }

    const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
    const data = imageData.data;

    // Define how much each channel is affected by the intensity.
    // These factors determine the "color" of the warmth.
    // Increase Red, Increase Green (less than Red), Decrease Blue.
    const rAddFactor = 1.0;  // Amount to add to Red channel per unit of intensity
    const gAddFactor = 0.5;  // Amount to add to Green channel per unit of intensity
    const bSubFactor = 0.8;  // Amount to subtract from Blue channel per unit of intensity

    const rChange = safeIntensity * rAddFactor;
    const gChange = safeIntensity * gAddFactor;
    const bChange = safeIntensity * bSubFactor;

    for (let i = 0; i < data.length; i += 4) {
        // Get current pixel's RGB values
        let r = data[i];
        let g = data[i + 1];
        let b = data[i + 2];

        // Apply warming effect
        r = r + rChange;
        g = g + gChange;
        b = b - bChange;

        // Ensure values stay within the 0-255 range
        data[i] = Math.min(255, Math.max(0, r));       // Red
        data[i + 1] = Math.min(255, Math.max(0, g)); // Green
        data[i + 2] = Math.min(255, Math.max(0, b));    // Blue
        // Alpha channel (data[i + 3]) remains unchanged
    }

    // 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 Warming Filter Effect Tool allows users to apply a warming effect to their images, enhancing the warmth and vibrancy of the colors. By adjusting the intensity level, users can increase the warmth by boosting the red and green hues while slightly reducing the blue tones. This tool is ideal for photographers and designers looking to create a cozy atmosphere in their visuals, enhance sunset or sunrise photos, or simply make images appear more inviting and lively.

Leave a Reply

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

Other Image Tools:

Image Fujifilm Pro 400H Filter Effect Application

Image Diffusion Filter Effect Tool

Image Push-Processed Film Filter Effect Tool

Image Color Temperature Orange Filter Effect Tool

Image Kodak Ektar 100 Film Filter Effect

Image Yellow Filter Black And White Effect Tool

Image Expired Film Filter Effect Tool

Image Circular Polarizer Filter Effect Tool

Image Lomography Purple Filter Effect Tool

Image Split Field Filter Effect Tool

Image Soft Focus Filter Effect Tool

Image Medium Format Film Filter Effect

Image Wide-Angle Lens Perspective Filter Effect Tool

Olympus OM-1 Photo Filter Effect Tool

Image Fujifilm Velvia Filter Effect Tool

Image Lensbaby Selective Focus Filter Effect Tool

Image Color Temperature Blue Filter Effect Tool

Image UV Filter Effect Tool

Image Red Filter Black And White Effect Tool

Image Redscale Film Filter Effect

Image Cinestill 800T Filter Effect Tool

Image Glimmer Glass Filter Effect Tool

Image Star Filter Effect Tool

Image Kodak Portra 400 Film Filter Effect

Image Fujifilm Superia Filter Effect Tool

Image Tilt-Shift Lens Filter Effect Tool

Image Graduated Neutral Density Filter Effect Tool

Image Diana Camera Filter Effect Tool

Image 35mm Film Camera Filter Effect Tool

Image Pro-Mist Filter Effect Application

Image Cross-Processed Slide Film Filter Effect Application

Image Pull-Processed Film Filter Effect Tool

Image Infrared Filter Effect Application

Image Ilford Delta 3200 Filter Effect Application

Image Cooling Filter Effect Tool

Image Fujifilm Instax Filter Effect Creator

See All →