Please bookmark this page to avoid losing your image tool!

G Major 1 Image

(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.0) {
    // Ensure intensity is within typical bounds (0.0 to 1.0)
    intensity = Math.max(0, Math.min(1, Number(intensity) || 1.0));

    // 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 the original image onto the canvas
    ctx.drawImage(originalImg, 0, 0, width, height);

    try {
        // Fetch pixel data
        const imageData = ctx.getImageData(0, 0, width, height);
        const data = imageData.data;

        // The classic "G Major 1" visual effect is a standard color inversion (negative).
        for (let i = 0; i < data.length; i += 4) {
            // Apply color inversion based on the given intensity
            data[i]     = data[i]     + (255 - 2 * data[i])     * intensity; // Red channel
            data[i + 1] = data[i + 1] + (255 - 2 * data[i + 1]) * intensity; // Green channel
            data[i + 2] = data[i + 2] + (255 - 2 * data[i + 2]) * intensity; // Blue channel
        }

        // Put the modified pixels back onto the canvas
        ctx.putImageData(imageData, 0, 0);
    } catch (e) {
        console.error("Error applying G Major 1 effect (Possible CORS issue):", 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 G Major 1 Image tool applies a visual color inversion effect to your images, simulating a classic stylized aesthetic. Users can adjust the intensity of the color inversion to achieve varying levels of the effect. This tool is useful for creating surreal imagery, digital art, or unique visual assets for social media and creative projects.

Leave a Reply

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