Please bookmark this page to avoid losing your image tool!

Image Bell 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, bellScale = "0.85", backgroundColor = "transparent") {
    // Parse parameters
    const scale = parseFloat(bellScale) || 0.85;

    // Set up canvas
    const canvas = document.createElement("canvas");
    const w = originalImg.width;
    const h = originalImg.height;
    canvas.width = w;
    canvas.height = h;

    const ctx = canvas.getContext("2d");

    // Dimensions for the bell to fit squarely within the image
    const size = Math.min(w, h) * scale;
    const cx = w / 2;
    const cy = h / 2;
    const bw = size; // Bell bounding width
    const bh = size; // Bell bounding height

    ctx.fillStyle = "black";
    ctx.strokeStyle = "black";

    // 1. Draw the bell handle (top ring)
    ctx.beginPath();
    ctx.arc(cx, cy - bh * 0.43, bw * 0.06, 0, Math.PI * 2);
    ctx.lineWidth = bw * 0.035;
    ctx.stroke();

    // 2. Draw the main bell body (mask shape)
    ctx.beginPath();
    ctx.moveTo(cx, cy - bh * 0.4); // Top center
    
    // Left dome
    ctx.bezierCurveTo(
        cx - bw * 0.25, cy - bh * 0.4,
        cx - bw * 0.3, cy - bh * 0.1,
        cx - bw * 0.3, cy + bh * 0.1
    );
    // Left flare
    ctx.bezierCurveTo(
        cx - bw * 0.3, cy + bh * 0.25,
        cx - bw * 0.45, cy + bh * 0.38,
        cx - bw * 0.45, cy + bh * 0.38
    );
    // Bottom opening curve
    ctx.quadraticCurveTo(
        cx, cy + bh * 0.48,
        cx + bw * 0.45, cy + bh * 0.38
    );
    // Right flare
    ctx.bezierCurveTo(
        cx + bw * 0.45, cy + bh * 0.38,
        cx + bw * 0.3, cy + bh * 0.25,
        cx + bw * 0.3, cy + bh * 0.1
    );
    // Right dome
    ctx.bezierCurveTo(
        cx + bw * 0.3, cy - bh * 0.1,
        cx + bw * 0.25, cy - bh * 0.4,
        cx, cy - bh * 0.4
    );
    ctx.closePath();
    ctx.fill();

    // Smooth out the sharp flare extremities with a rounded stroke
    ctx.lineJoin = "round";
    ctx.lineWidth = bw * 0.02; 
    ctx.stroke();

    // 3. Draw the clapper
    ctx.beginPath();
    ctx.arc(cx, cy + bh * 0.43, bw * 0.06, 0, Math.PI * 2);
    ctx.fill();

    // Overlay the original image inside the bell shape
    ctx.globalCompositeOperation = "source-in";
    ctx.drawImage(originalImg, 0, 0, w, h);

    // Apply background color if not transparent
    if (backgroundColor && backgroundColor.trim().toLowerCase() !== "transparent") {
        ctx.globalCompositeOperation = "destination-over";
        ctx.fillStyle = backgroundColor.trim();
        ctx.fillRect(0, 0, w, h);
    }
    
    // Reset composite operation to default
    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 Bell Generator is a creative tool that uses a bell-shaped mask to frame your images. By applying a bell silhouette over an uploaded photo, the tool clips the image content to fit within the shape of a bell, including its handle and clapper. This tool can be used for designing unique festive graphics, creating themed social media posts, or generating decorative elements for holiday-related projects.

Leave a Reply

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

Other Image Tools:

Colorado Driver License Fictional Person Generator

Fake Driver License Image Generator

35mm 2960×1800 Ratio Resolution Image Resizer

The Lion King 1994 IMAX 70mm Movie Trailer Image

Big Hero 6 Character Replacement AI Tool for Video and Image

Big Hero 6 Character Replace AI Image and Video Tool

Big Hero 6 To Big Hero 6 The Series AU Replacement Tool

Big Hero 6 To Big Hero 6 The Series AU Image and Video Replacer

Slow Motion Video and Audio Playback Tool

Image Speed Reduction Tool

YouTube Stats For Nerds Audio Volume Normalization Analysis Tool

YouTube Stats For Nerds Audio Volume Normalization Information Tool

YouTube Stats For Nerds Volume Normalization Analyzer

YouTube Stats For Nerds Audio Volume Normalization Analyzer

YouTube Stats For Nerds Volume Normalization Analysis Tool

YouTube Stats For Nerds Audio Volume Normalization Information Display

YouTube Stats For Nerds Volume Normalization Information Tool

YouTube Stats For Nerds Audio Volume and Codec Information Extractor

YouTube Audio Stats Volume Normalization Tool for Mp2 Mp3 Opus and Ac3

Audio Volume Normalizer for Mp2 Mp3 Opus and Ac3 Formats

YouTube Audio Stats Volume Normalizer For Mp2 Mp3 Opus and Ac3 Formats

United States of America Federal Social Security Card Template Maker

Ukrainian Dub Master Video Voice Actor Information Tool

Ukrainian Dubbed Video Voice Actor Information Tool

YouTube Stats For Nerds Volume Normalizer for Opus and Ac3 Audio

YouTube Audio Volume Normalization Tool for Opus and Ac3 Formats

YouTube Stats For Nerds Volume Normalization Tool

YouTube Video Image and Metadata Stats For Nerds Tool

YouTube Video Image and Stats For Nerds Viewer

Image To I Killed X Losky Effect Color Filter Converter

YouTube Video Photo and Stats Viewer

Image To G Major 16 Color Filter Converter

YouTube Video Photo and Image Stats For Nerds Tool

Image To Scalable Kaomoji Converter With Decorative Symbols

Kingdom Hearts SVTFOE Gameplay Image Viewer

Kingdom Hearts SVTFOE Gameplay Video Player

See All →