Please bookmark this page to avoid losing your image tool!

Video To Image 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, noiseLevel = '25', scanlineIntensity = '40', rgbShift = '4') {
    // Parse parameters
    const noiseAmt = parseFloat(noiseLevel);
    const scanlineAmt = parseFloat(scanlineIntensity) / 100;
    const shiftAmt = parseInt(rgbShift, 10);

    // Set up canvas
    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');
    const width = originalImg.width;
    const height = originalImg.height;
    canvas.width = width;
    canvas.height = height;

    // Draw original image to canvas
    ctx.drawImage(originalImg, 0, 0);
    const imgData = ctx.getImageData(0, 0, width, height);
    const data = imgData.data;
    
    // Create a copy of the pixel data to read from while modifying the original
    const originalData = new Uint8ClampedArray(data);

    // Calculate wave properties for tracking distortion
    const waveFrequency = (Math.PI * 2) / (height * 0.2); // slight wave frequency
    const waveAmplitude = shiftAmt * 0.5;

    for (let y = 0; y < height; y++) {
        // CRT scanline effect using a sine wave
        const scanlineMultiplier = 1 - scanlineAmt * (0.5 + 0.5 * Math.sin(y * Math.PI * 0.8));

        // Subtle tracking distortion (VHS wobbly effect)
        const distortionOffset = Math.sin(y * waveFrequency) * waveAmplitude;

        for (let x = 0; x < width; x++) {
            const index = (y * width + x) * 4;

            // Chromatic aberration (RGB shift) calculations
            let rX = Math.floor(x - shiftAmt + distortionOffset);
            let gX = Math.floor(x + distortionOffset);
            let bX = Math.floor(x + shiftAmt + distortionOffset);

            // Clamp coordinates to image width boundaries
            rX = Math.max(0, Math.min(width - 1, rX));
            gX = Math.max(0, Math.min(width - 1, gX));
            bX = Math.max(0, Math.min(width - 1, bX));

            // Fetch shifted colors from original buffer
            const rIndex = (y * width + rX) * 4;
            const gIndex = (y * width + gX) * 4;
            const bIndex = (y * width + bX) * 4;

            let r = originalData[rIndex];
            let g = originalData[gIndex + 1];
            let b = originalData[bIndex + 2];

            // Apply monochromatic TV noise (static)
            if (noiseAmt > 0) {
                const noise = (Math.random() - 0.5) * noiseAmt * 2;
                r += noise;
                g += noise;
                b += noise;
            }

            // Apply scanline darkening
            if (scanlineAmt > 0) {
                r *= scanlineMultiplier;
                g *= scanlineMultiplier;
                b *= scanlineMultiplier;
            }

            // Write back to main image data Array
            data[index] = r;
            data[index + 1] = g;
            data[index + 2] = b;
            // Alpha channel (index + 3) remains untouched
        }
    }

    // Put modified pixel data back onto canvas
    ctx.putImageData(imgData, 0, 0);

    // Add a CRT monitor vignette overlay (darkened corners)
    const gradient = ctx.createRadialGradient(
        width / 2, height / 2, Math.max(width, height) * 0.4,
        width / 2, height / 2, Math.max(width, height) * 0.75
    );
    gradient.addColorStop(0, 'rgba(0, 0, 0, 0)');
    gradient.addColorStop(1, 'rgba(0, 0, 0, 0.5)');
    
    // Set composite operation to blend vignette smoothly
    ctx.globalCompositeOperation = 'multiply';
    ctx.fillStyle = gradient;
    ctx.fillRect(0, 0, width, height);
    
    // Reset composite operation to default
    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 retro video effects to images to mimic the aesthetic of vintage analog media. It can simulate various visual artifacts such as CRT scanlines, monochromatic TV static noise, chromatic aberration (RGB shifting), and subtle VHS-style tracking distortions. Additionally, it applies a vignette effect to recreate the look of old monitor screens. This tool is ideal for digital artists, content creators, or designers looking to add a nostalgic, lo-fi, or retro aesthetic to their photos and graphics.

Leave a Reply

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