Please bookmark this page to avoid losing your image tool!

Undead Image Filter

(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.
/**
 * Applies an "Undead" filter to the image, making it look sickly, 
 * desaturated, high contrast, and tinted with a pale/greenish hue.
 * 
 * @param {HTMLImageElement} originalImg - The original image object to be processed
 * @param {number} intensity - The intensity of the filter from 0 to 100
 * @returns {HTMLCanvasElement} - The canvas element containing the filtered image
 */
function processImage(originalImg, intensity = 100) {
    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');

    // Match canvas size to the original image
    canvas.width = originalImg.width;
    canvas.height = originalImg.height;

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

    // Skip processing if intensity is 0
    if (intensity <= 0) {
        return canvas;
    }

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

    // Normalize intensity to a 0.0 - 1.0 multiplier
    const ratio = Math.max(0, Math.min(100, intensity)) / 100;
    
    // Contrast parameters (Increase contrast to make shadows harsher and features sunken)
    const contrast = 50 * ratio;
    const factor = (259 * (contrast + 255)) / (255 * (259 - contrast));
    
    // Desaturation parameter (Reduce color to simulate lifelessness)
    // At maximum intensity, we keep only 15% of the original color saturation
    const colorKeep = 1 - (0.85 * ratio); 

    for (let i = 0; i < data.length; i += 4) {
        let r = data[i];
        let g = data[i + 1];
        let b = data[i + 2];

        // 1. Calculate luminance (perceived brightness)
        let lum = 0.299 * r + 0.587 * g + 0.114 * b;

        // 2. Desaturate the pixel
        r = r * colorKeep + lum * (1 - colorKeep);
        g = g * colorKeep + lum * (1 - colorKeep);
        b = b * colorKeep + lum * (1 - colorKeep);

        // 3. Apply "Undead" Tint
        // - Drain reds (lack of blood flow)
        // - Boost greens slightly (decay/rot)
        // - Drain blues slightly (but keep more than red for a cold look)
        let tr = r * (1 - 0.40 * ratio); // Drop red by up to 40%
        let tg = g * (1 + 0.15 * ratio); // Boost green by up to 15%
        let tb = b * (1 - 0.10 * ratio); // Drop blue by up to 10%

        // 4. Apply high contrast
        tr = factor * (tr - 128) + 128;
        tg = factor * (tg - 128) + 128;
        tb = factor * (tb - 128) + 128;

        // 5. Darken the image overall to look more sinister and gloomy
        tr -= 25 * ratio;
        tg -= 20 * ratio;
        tb -= 15 * ratio;

        // 6. Clamp values between 0 and 255 and assign back to array
        data[i]     = Math.max(0, Math.min(255, tr));
        data[i + 1] = Math.max(0, Math.min(255, tg));
        data[i + 2] = Math.max(0, Math.min(255, tb));
        // data[i + 3] is the alpha channel, which remains unchanged
    }

    // Put modified pixels 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 Undead Image Filter is a specialized photo editing tool designed to transform images with a spooky, macabre aesthetic. By adjusting the intensity of the effect, the tool desaturates colors, increases contrast, and applies a sickly greenish tint to simulate a lifeless or decaying appearance. This tool is ideal for creators working on horror-themed projects, Halloween decorations, concept art for dark fantasy games, or adding a sinister atmosphere to social media content.

Leave a Reply

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

Other Image Tools:

Website Interface Address Image Extractor

Image Text Field Creator Studio

Image Project Creation Icon and Text Field Tool

Image Text Underneath Adder

Image Language Editor

AI Image Project Creator Tool

Image Language Scanner Identifier

Image Scanner Identifier and Language Translator

Movie Studio Name and Year Image Scanner Identifier

Image Based Audio Song Lyric Identifier and MP3 Downloader

Image Scanner Interface Address Identifier Tool

3D Printer Scanner Identifier Tool

3D Model Printer and Scanner Identifier Tool

Image Scanner City Identifier Tool

Image Scanner Movie Identifier Tool

Scanner Identifier for Studio Company and Year from Image

Image Scanner Language Identifier and Dub Translator Tool

Image Scanner Software and Mediateka Topic Search Identifier

Image Scanner Identifier and Mediateka Search Topic Picker

Image Scanner Identifier Picker

Mediateka Image Scanner and Identifier Tool

Image Based Movie Scanner and Identifier

Image Address Icon Generator Tool

Image Company Year Identifier Scanner Tool

AI Company Year Generator From Image

Movie Studio Of The Year Photo Remover

AI Studio Company Year Image Identifier Generator

Image Search For Film Studio Finders

Image Scanner Topic Search Tool for Movie Studios and Companies

Image Search Topic Identifier For Movie Studios Of The Year

Movie Studio and Film Production ID Converter

Movie Project Details Generator with Studio and Year Information

Movie Studio Year ID Scanner and Converter Tool

Company of the Year Studio Project Converter

Image Description Tool

Image Converter

See All →