Please bookmark this page to avoid losing your image tool!

Image Soft Bubble Overlay Adder

(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, bubbleCount = 50, bubbleOpacity = 0.6) {
    const bubbles = parseInt(bubbleCount, 10) || 50;
    const opacity = parseFloat(bubbleOpacity) || 0.6;

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

    // Apply composite operation to make the bubbles blend softly with the image
    ctx.globalCompositeOperation = "screen";

    const minRadius = Math.max(width, height) * 0.02;
    const maxRadius = Math.max(width, height) * 0.12;

    for (let i = 0; i < bubbles; i++) {
        // Randomize bubble position, size, and hue
        const r = minRadius + Math.random() * (maxRadius - minRadius);
        const x = Math.random() * (width + r * 2) - r;
        const y = Math.random() * (height + r * 2) - r;
        
        // Random pastel hues for a slight iridescent/soap bubble effect
        const hue = Math.floor(Math.random() * 360);

        // Create main bubble body (soft radial gradient)
        const bubbleGrad = ctx.createRadialGradient(x, y, r * 0.4, x, y, r);
        bubbleGrad.addColorStop(0, `hsla(${hue}, 70%, 80%, 0)`);
        bubbleGrad.addColorStop(0.7, `hsla(${hue}, 70%, 80%, ${opacity * 0.2})`);
        bubbleGrad.addColorStop(0.95, `hsla(${hue}, 80%, 90%, ${opacity})`);
        bubbleGrad.addColorStop(1, `hsla(${hue}, 80%, 90%, 0)`);

        ctx.fillStyle = bubbleGrad;
        ctx.beginPath();
        ctx.arc(x, y, r, 0, Math.PI * 2);
        ctx.fill();

        // Add a soft white highlight to make the bubble look 3D and shiny
        const hx = x - r * 0.35;
        const hy = y - r * 0.35;
        const hr = r * 0.25;
        
        const highlightGrad = ctx.createRadialGradient(hx, hy, 0, hx, hy, hr);
        highlightGrad.addColorStop(0, `rgba(255, 255, 255, ${opacity * 0.8})`);
        highlightGrad.addColorStop(1, `rgba(255, 255, 255, 0)`);
        
        ctx.fillStyle = highlightGrad;
        ctx.beginPath();
        ctx.arc(hx, hy, hr, 0, Math.PI * 2);
        ctx.fill();
        
        // Add a secondary smaller reflection on the opposite side
        const hx2 = x + r * 0.4;
        const hy2 = y + r * 0.4;
        const hr2 = r * 0.15;
        
        const highlightGrad2 = ctx.createRadialGradient(hx2, hy2, 0, hx2, hy2, hr2);
        highlightGrad2.addColorStop(0, `rgba(255, 255, 255, ${opacity * 0.4})`);
        highlightGrad2.addColorStop(1, `rgba(255, 255, 255, 0)`);
        
        ctx.fillStyle = highlightGrad2;
        ctx.beginPath();
        ctx.arc(hx2, hy2, hr2, 0, Math.PI * 2);
        ctx.fill();
    }

    // Reset composite operation
    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

The Image Soft Bubble Overlay Adder is a creative tool that overlays a layer of soft, iridescent bubbles onto your images. It generates randomized, pastel-hued bubbles with varying sizes and positions, complete with subtle highlights to create a realistic, 3D shiny effect. This tool is ideal for adding a whimsical, dreamy, or magical aesthetic to photos, making it perfect for social media posts, digital art enhancements, or themed graphic design projects.

Leave a Reply

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

Other Image Tools:

Image Aspect Ratio 20:9 Stretch Tool

Image To Music Search Finder

Image To Movie Details Finder

Image To Walt Disney Animation Studios Movie Search Tool

Beauty and the Beast Special Extended Edition 1991 Movie Info Tool

Image Information Extractor for Movie Details

Stretch Image To 9:16 Aspect Ratio

Image Aspect Ratio 2.55:1 Resizer

Image To 20:9 Aspect Ratio Converter

Big Hero 6 2014 Wonder Project Amazon Channel Video Image Tool

Android Ringtone MP3 Photo Player

Image To Low Voice Converter

Image Metadata Extractor for Big Hero 6 Video File

No description provided for an image utility tool

Image Information Extractor for Big Hero 6 Video Metadata

No descriptive tool purpose provided in the input

No descriptive utility information provided

Image Metadata Extractor from Video Titles

No description provided for a valid image utility tool

Texas Driver License Image Generator

Photo To Hand Painted Effect Converter

Golden Ratio Spiral Overlay on Egg Photo Creator

Image Lossky Klasky Csupo Effect Generator

Image Losky Klasky Csupo Effect Generator

Image Klasky Csupo Effect Generator

Image I Killed X Effect Generator

Image I Killed X Losky Effect Generator

Posterize Bands Image Effect Generator

Lucky Image Effect Generator

Troll Image Effect Generator

Professional Image Editor

MrHorseShoe Major Image Effect Generator

Image D.J. Russ Effect Generator

Image G-Major 3 Effect Generator

MacOS X Booting Image Effect Generator

Slow Wobble Image Effect Generator

See All →