Please bookmark this page to avoid losing your image tool!

Lazy Butterfly Effect And Inverted 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, mirrorSide = 'left', invert = 'yes') {
    const canvas = document.createElement('canvas');
    const w = originalImg.width;
    const h = originalImg.height;
    
    // Maintain identical dimensions
    canvas.width = w;
    canvas.height = h;
    const ctx = canvas.getContext('2d');

    const halfW = Math.floor(w / 2);
    const halfH = Math.floor(h / 2);

    // Apply the "Lazy Butterfly" (I Broke X) Effect
    // This effect duplicates and mirrors one half of the image onto the other
    if (mirrorSide === 'right') {
        const dw = w - halfW;
        ctx.drawImage(originalImg, halfW, 0, dw, h, halfW, 0, dw, h);
        ctx.save();
        ctx.translate(w, 0);
        ctx.scale(-1, 1);
        ctx.drawImage(originalImg, halfW, 0, dw, h, halfW, 0, dw, h);
        ctx.restore();
    } else if (mirrorSide === 'top') {
        ctx.drawImage(originalImg, 0, 0, w, halfH, 0, 0, w, halfH);
        ctx.save();
        ctx.translate(0, h);
        ctx.scale(1, -1);
        ctx.drawImage(originalImg, 0, 0, w, halfH, 0, 0, w, halfH);
        ctx.restore();
    } else if (mirrorSide === 'bottom') {
        const dh = h - halfH;
        ctx.drawImage(originalImg, 0, halfH, w, dh, 0, halfH, w, dh);
        ctx.save();
        ctx.translate(0, h);
        ctx.scale(1, -1);
        ctx.drawImage(originalImg, 0, halfH, w, dh, 0, halfH, w, dh);
        ctx.restore();
    } else {
        // Defaults to 'left' side
        ctx.drawImage(originalImg, 0, 0, halfW, h, 0, 0, halfW, h);
        ctx.save();
        ctx.translate(w, 0);
        ctx.scale(-1, 1);
        ctx.drawImage(originalImg, 0, 0, halfW, h, 0, 0, halfW, h);
        ctx.restore();
    }

    // Apply the Inverted Image Effect
    if (invert === 'yes' || invert === 'true' || invert === 1) {
        const imgData = ctx.getImageData(0, 0, w, h);
        const data = imgData.data;
        
        for (let i = 0; i < data.length; i += 4) {
            data[i]     = 255 - data[i];     // Red
            data[i + 1] = 255 - data[i + 1]; // Green
            data[i + 2] = 255 - data[i + 2]; // Blue
        }
        
        ctx.putImageData(imgData, 0, 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 Lazy Butterfly Effect and Inverted Image Effect Generator allows users to apply unique visual transformations to their images. It features a ‘Lazy Butterfly’ effect that mirrors one side of an image onto the other—either horizontally or vertically—to create a symmetrical composition. Additionally, the tool includes an inversion feature that flips the colors of the image. This tool can be used for creative photo editing, generating abstract digital art, or creating unique social media assets and graphic design elements.

Leave a Reply

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

Other Image Tools:

MoreTestosteroneCityNight Image Effect Generator

Photo To Atomic Blonde Logo Style Converter

Photo To Ouija Origin Of Evil Logo Style Converter

Particle Dust Image Effect Generator

Chromatic Aberration Image Effect Generator

Soft Focus Blur Image Effect Generator

Wii Menu Chirp Echo Image Effect Generator

Sunrise Bloom Image Effect Generator

Morning Mist Overlay Image Effect Generator

Dewdrop Refraction Image Effect Generator

Golden Hour Glow Image Effect Generator

Lights Out Movie Poster

Lights Out Sky Scream Roller Coaster Movie Poster Generator

Lights Out Sky Scream Roller Coaster Movie Poster Website Image

Lights Out Sky Scream Roller Coaster Movie Poster Image

Empty Texas State Driver License Generator

Editable Realistic State Driver License Photo Template Generator

Photo To Skype Incoming Call Video Converter for Mac

Photo To Skype Incoming Call Video Converter

Photo To Skype Incoming Call Background Converter

Photo To Video Trailer Creator

Cybernatural Conjuring Teaser Poster Generator

Unfriended Conjuring Movie Poster Image

Annabelle Comes Home Movie Poster

Annabelle Creation Movie Poster

Annabelle Movie Poster 2014

The Conjuring Last Rites Movie Poster

The Conjuring The Devil Made Me Do It Movie Poster

The Conjuring 2 Movie Poster

The Conjuring Movie Poster

Photo To Conjuring Title Card Sequence Converter

Image License Information Viewer

Image Moiré Effect Text Adder

Moiré Pattern Image Generator With Shapes and Decorative Elements

Video To Website Image Converter

Photo To AI Trailer Video Generator

See All →