Please bookmark this page to avoid losing your image tool!

G-Major 4 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, enableGhosting = "true", contrastLevel = 120, redTintMultiplier = 1.3) {
    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 the original image onto the canvas
    ctx.drawImage(originalImg, 0, 0);
    
    const imgData = ctx.getImageData(0, 0, width, height);
    const data = imgData.data;
    
    // G-Major limits are typically very high contrast, inverted colors, and pushed red/magenta levels
    const contrast = Number(contrastLevel);
    const redBoost = Number(redTintMultiplier);
    
    // Contrast factor calculation
    const factor = (259 * (contrast + 255)) / (255 * (259 - contrast));
    
    // Apply core G-Major visual transformations: Invert -> Contrast -> Tint
    for (let i = 0; i < data.length; i += 4) {
        // 1. Invert colors
        let r = 255 - data[i];
        let g = 255 - data[i + 1];
        let b = 255 - data[i + 2];
        
        // 2. High contrast
        r = factor * (r - 128) + 128;
        g = factor * (g - 128) + 128;
        b = factor * (b - 128) + 128;
        
        // 3. Heavy color tinting (Boost red and blue, suppress green for a demonic look)
        r *= redBoost;
        g *= 0.7; // suppress green
        b *= 1.1; // minor boost to blue
        
        // Data is Uint8ClampedArray, it handles values < 0 or > 255 automatically
        data[i] = r;
        data[i + 1] = g;
        data[i + 2] = b;
    }
    
    // Put the modified image data back
    ctx.putImageData(imgData, 0, 0);
    
    // 4. Ghosting / Multi-layer effect (Mimicking the multi-channel overlapping audio of G-Major 4)
    if (String(enableGhosting).toLowerCase() === "true") {
        const tempCanvas = document.createElement("canvas");
        tempCanvas.width = width;
        tempCanvas.height = height;
        const tempCtx = tempCanvas.getContext("2d");
        tempCtx.drawImage(canvas, 0, 0);
        
        // Apply an offset, slightly scaled semi-transparent clone
        ctx.globalCompositeOperation = "screen";
        ctx.globalAlpha = 0.4;
        
        // First ghost: zoomed and offset
        ctx.drawImage(
            tempCanvas, 
            -width * 0.05, 
            -height * 0.05, 
            width * 1.1, 
            height * 1.1
        );
        
        // Second ghost: mirrored horizontally
        ctx.globalAlpha = 0.3;
        ctx.save();
        ctx.scale(-1, 1);
        ctx.drawImage(tempCanvas, -width, 0);
        ctx.restore();
        
        // Reset composite operation & alpha
        ctx.globalCompositeOperation = "source-over";
        ctx.globalAlpha = 1.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 G-Major 4 Image Effect Generator applies a distinct visual transformation to images, characterized by color inversion, high contrast, and heavy red and blue color tinting. It also features a ghosting effect that creates semi-transparent, offset, and mirrored layers to produce a surreal, multi-layered appearance. This tool is ideal for users looking to create stylized, high-intensity visuals for digital art, meme creation, or dramatic social media content.

Leave a Reply

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