Please bookmark this page to avoid losing your image tool!

Chi Major Image Effect Generator

(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, mirror = "1", contrast = "2.0", applyDistortion = "1") {
    const canvas = document.createElement('canvas');
    const width = originalImg.width;
    const height = originalImg.height;
    
    canvas.width = width;
    canvas.height = height;
    
    const ctx = canvas.getContext('2d');
    ctx.drawImage(originalImg, 0, 0, width, height);

    try {
        const imgData = ctx.getImageData(0, 0, width, height);
        const data = imgData.data;

        const contrastLevel = parseFloat(contrast) || 2.0;
        const distort = parseInt(applyDistortion) === 1;
        const doMirror = parseInt(mirror) === 1;

        // Apply "Chi Major" Meme/YTP style visual effects
        // Typical traits: Inverted, Channel swapped, highly contrasted.
        for (let i = 0; i < data.length; i += 4) {
            let r = data[i];
            let g = data[i + 1];
            let b = data[i + 2];

            if (distort) {
                // Chaotic channel swap typical in "Major" visual effects
                let tempR = r;
                r = b;
                b = g;
                g = tempR;
            }

            // Invert colors
            r = 255 - r;
            g = 255 - g;
            b = 255 - b;

            // Apply high contrast boost
            r = ((r / 255 - 0.5) * contrastLevel + 0.5) * 255;
            g = ((g / 255 - 0.5) * contrastLevel + 0.5) * 255;
            b = ((b / 255 - 0.5) * contrastLevel + 0.5) * 255;
            
            // Add a slight red tint multiplier often seen in these audio/visual meme filters
            r *= 1.25; 
            g *= 0.85;
            b *= 0.85;

            // Clamp the values between 0 and 255
            data[i] = Math.max(0, Math.min(255, r));
            data[i + 1] = Math.max(0, Math.min(255, g));
            data[i + 2] = Math.max(0, Math.min(255, b));
        }

        // Apply Mirror Effect (mirrors the left half to the right half)
        if (doMirror) {
            const halfWidth = Math.floor(width / 2);
            for (let y = 0; y < height; y++) {
                for (let x = 0; x < halfWidth; x++) {
                    const leftIdx = (y * width + x) * 4;
                    const rightIdx = (y * width + (width - x - 1)) * 4;

                    data[rightIdx] = data[leftIdx];           // R
                    data[rightIdx + 1] = data[leftIdx + 1];   // G
                    data[rightIdx + 2] = data[leftIdx + 2];   // B
                    data[rightIdx + 3] = data[leftIdx + 3];   // Alpha
                }
            }
        }

        ctx.putImageData(imgData, 0, 0);
    } catch (e) {
        console.error("Error processing Chi Major effect. Could be an issue with Canvas CORS.", e);
    }

    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 Chi Major Image Effect Generator is a tool designed to apply intense, stylized visual transformations to images. It can perform color inversion, high-contrast adjustments, channel swapping for a distorted look, and red-tinted color grading. Additionally, the tool features a mirroring function that can replicate one side of an image onto the other. This tool is ideal for creators looking to produce surreal, meme-style, or high-energy visual content for social media and online art projects.

Leave a Reply

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