Please bookmark this page to avoid losing your image tool!

Image To I Killed X Losky Effect Color Filter Converter

(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 = 1) {
    // Ensure intensity is a valid number
    let filterIntensity = Number(intensity);
    if (isNaN(filterIntensity)) filterIntensity = 1;

    // Create canvas to process the image
    const canvas = document.createElement('canvas');
    const width = originalImg.width;
    const height = originalImg.height;
    canvas.width = width;
    canvas.height = height;
    const ctx = canvas.getContext('2d');
    
    // Draw original image
    ctx.drawImage(originalImg, 0, 0, width, height);

    // Extract pixel data
    const imgData = ctx.getImageData(0, 0, width, height);
    const data = imgData.data;

    // Calculate contrast factor for a punchy, grungy look
    // 35 is our base contrast increment
    const contrastVal = 35 * filterIntensity;
    const contrastFactor = (259 * (contrastVal + 255)) / (255 * (259 - contrastVal));

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

        // 1. Apply Contrast
        r = contrastFactor * (r - 128) + 128;
        g = contrastFactor * (g - 128) + 128;
        b = contrastFactor * (b - 128) + 128;

        // 2. Gritty Color Desaturation / Blend
        // This mix flattens distinct bright colors for a moodier aesthetic
        let newR = r * 0.85 + g * 0.15 + b * 0.0;
        let newG = r * 0.1 + g * 0.8 + b * 0.1;
        let newB = r * 0.0 + g * 0.15 + b * 0.85;

        r = r + (newR - r) * filterIntensity;
        g = g + (newG - g) * filterIntensity;
        b = b + (newB - b) * filterIntensity;

        // 3. Edgy Split Toning
        // Approximate luma (brightness)
        let luma = 0.3 * r + 0.59 * g + 0.11 * b;
        
        if (luma < 128) {
            // Dark areas get a red/warm lift
            r += (128 - luma) * 0.25 * filterIntensity;
        } else {
            // Bright areas get a slight cool/cyan lift
            b += (luma - 128) * 0.2 * filterIntensity;
            g += (luma - 128) * 0.05 * filterIntensity;
        }

        // 4. Subtle Film Grain / Noise
        let noise = (Math.random() - 0.5) * 12 * filterIntensity;

        // Uint8ClampedArray handles underflow/overflow bounds (clamping 0-255) automatically
        data[i] = r + noise;
        data[i + 1] = g + noise;
        data[i + 2] = b + noise;
    }

    // Apply modified pixels back to the Canvas
    ctx.putImageData(imgData, 0, 0);

    // 5. Apply Vignette Effect (Darkened Edges)
    const cx = width / 2;
    const cy = height / 2;
    const maxDist = Math.sqrt(cx * cx + cy * cy);
    
    ctx.globalCompositeOperation = 'multiply';
    
    // Create radial gradient for vignette
    const gradient = ctx.createRadialGradient(cx, cy, maxDist * 0.25, cx, cy, maxDist);
    // Control edge darkness intensity
    const edgeAlpha = Math.min(1, Math.max(0, 0.5 * filterIntensity));
    
    gradient.addColorStop(0, 'rgba(0, 0, 0, 0)'); // Center transparent
    gradient.addColorStop(1, `rgba(0, 0, 0, ${edgeAlpha})`); // Edges dark
    
    ctx.fillStyle = gradient;
    ctx.fillRect(0, 0, width, height);
    
    // Reset composite operation just to maintain clean state
    ctx.globalCompositeOperation = 'source-over';

    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

This tool applies a stylized color filter to images to create a moody, high-contrast, and gritty aesthetic. The transformation includes enhanced contrast, subtle color desaturation, split toning (warm tones in shadows and cool tones in highlights), film grain noise, and a vignette effect to darken the edges. It is ideal for users looking to give their photos an edgy, cinematic, or grunge-inspired look for social media, digital art, or creative projects.

Leave a Reply

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

Other Image Tools:

YouTube Video Photo and Stats Viewer

Image To G Major 16 Color Filter Converter

YouTube Video Photo and Image Stats For Nerds Tool

Image To Scalable Kaomoji Converter With Decorative Symbols

Kingdom Hearts SVTFOE Gameplay Image Viewer

Kingdom Hearts SVTFOE Gameplay Video Player

Image To Video Content Description Tool

Big Hero 6 2014 Tubi TV June 30 2027 Video Screenshot

No tool description provided

Big Hero 6 2014 Tubi Jun 30 2027 Photo

San Diego Comic-Con Image Gallery

Movie Studio Intro YTP Collab Style Image Maker

Movie Studio Music Fanfare Logo Maker

Movie Studio Music Fanfare Logo Generator

Kurdish Dubbing Audio to Image Visualizer Tool

Kurdish Dubbed Audio Video Tool

Kurdish Dub Audio to Image Converter

Kurdish Dub Audio Overlay Tool

Warner Bros Discovery Animation Studio Divisions Image Viewer

Image To Character Voice Actor Idea Generator

Image To Character Voice Actor Suggestion Tool

Image Color Adjustment Tool

Dingbats Logo Compilation Image Generator

Image Color and Opacity Adjustment Tool

The Lion King VHS Mar 3 1995 Image

The Lion King Hamtaro Character Cast Reimaginer

Audio Transcription and Identification Tool

The Lion King Hamtaro Character Role Swap Image Generator

Audio to Image Fanfare Visualizer Tool

Audio Clip of Universal Pictures Fanfares

Audio File to Image Converter

Universal Pictures Fanfare Audio Identifier

Universal Pictures Fanfare Audio Identification Tool

Universal Pictures Fanfare Audio Comparison Tool

Universal Pictures Fanfare Audio Search Tool

Universal Pictures Fanfare Audio Player

See All →