Please bookmark this page to avoid losing your image tool!

Image Language Name Picker Tool Creator

(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, name = "Jane Doe", language = "English", badgeColor = "#e74c3c", position = "bottom") {
    // Create canvas matching the original image dimensions
    const canvas = document.createElement('canvas');
    canvas.width = originalImg.width;
    canvas.height = originalImg.height;
    const ctx = canvas.getContext('2d');

    // Draw original image
    ctx.drawImage(originalImg, 0, 0);

    // Determine dimensions for the overlay badge
    const badgeWidth = canvas.width * 0.8;
    const badgeHeight = Math.min(canvas.height * 0.5, Math.max(100, canvas.height * 0.25));
    const badgeX = (canvas.width - badgeWidth) / 2;
    
    // Calculate Y position based on preference
    let badgeY = 0;
    if (position.toLowerCase() === "top") {
        badgeY = canvas.height * 0.05;
    } else if (position.toLowerCase() === "center") {
        badgeY = (canvas.height - badgeHeight) / 2;
    } else { // default to bottom
        badgeY = canvas.height - badgeHeight - (canvas.height * 0.05);
    }

    // Helper to draw a rounded rectangle (smooth fallback for older browsers)
    const drawRoundRect = (x, y, w, h, radius) => {
        ctx.beginPath();
        if (ctx.roundRect) {
            ctx.roundRect(x, y, w, h, radius);
        } else {
            ctx.moveTo(x + radius, y);
            ctx.lineTo(x + w - radius, y);
            ctx.quadraticCurveTo(x + w, y, x + w, y + radius);
            ctx.lineTo(x + w, y + h - radius);
            ctx.quadraticCurveTo(x + w, y + h, x + w - radius, y + h);
            ctx.lineTo(x + radius, y + h);
            ctx.quadraticCurveTo(x, y + h, x, y + h - radius);
            ctx.lineTo(x, y + radius);
            ctx.quadraticCurveTo(x, y, x + radius, y);
        }
    };

    // Draw shadow
    ctx.shadowColor = 'rgba(0, 0, 0, 0.5)';
    ctx.shadowBlur = 15;
    ctx.shadowOffsetX = 0;
    ctx.shadowOffsetY = 10;

    // Draw main white badge background
    drawRoundRect(badgeX, badgeY, badgeWidth, badgeHeight, 20);
    ctx.fillStyle = '#ffffff';
    ctx.fill();

    // Reset shadow to avoid applying it to text and internal panels
    ctx.shadowBlur = 0;
    ctx.shadowColor = 'transparent';

    const headerHeight = badgeHeight * 0.35;
    const footerHeight = badgeHeight * 0.25;

    // Draw colored header and footer backgrounds (clipped to maintain rounded corners)
    ctx.save();
    drawRoundRect(badgeX, badgeY, badgeWidth, badgeHeight, 20);
    ctx.clip();

    ctx.fillStyle = badgeColor;
    // Header Panel
    ctx.fillRect(badgeX, badgeY, badgeWidth, headerHeight);
    // Footer Panel
    ctx.fillRect(badgeX, badgeY + badgeHeight - footerHeight, badgeWidth, footerHeight);
    ctx.restore();

    // Prepare centered text coordinates
    const cx = badgeX + badgeWidth / 2;
    ctx.textAlign = 'center';
    ctx.textBaseline = 'middle';
    
    // 1. Header Text
    ctx.fillStyle = '#ffffff';
    let fontSize = headerHeight * 0.45;
    ctx.font = `bold ${fontSize}px "Arial Black", Arial, sans-serif`;
    ctx.fillText("HELLO", cx, badgeY + headerHeight * 0.35);
    
    fontSize = headerHeight * 0.25;
    ctx.font = `${fontSize}px Arial, sans-serif`;
    ctx.fillText("MY NAME IS", cx, badgeY + headerHeight * 0.75);

    // 2. Name Text (Middle part)
    ctx.fillStyle = '#000000';
    fontSize = (badgeHeight - headerHeight - footerHeight) * 0.6;
    ctx.font = `bold ${fontSize}px "Comic Sans MS", "Marker Felt", "Caveat", cursive, sans-serif`;
    
    // Fit text within bounds to avoid overflow horizontally
    const maxTextWidth = badgeWidth * 0.9;
    ctx.fillText(name, cx, badgeY + headerHeight + (badgeHeight - headerHeight - footerHeight) / 2, maxTextWidth);

    // 3. Footer Language Text
    ctx.fillStyle = '#ffffff';
    fontSize = footerHeight * 0.45;
    ctx.font = `bold ${fontSize}px "Trebuchet MS", Arial, sans-serif`;
    ctx.fillText(`LANGUAGE: ${language.toUpperCase()}`, cx, badgeY + badgeHeight - footerHeight / 2, maxTextWidth);

    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 Language Name Picker Tool Creator allows users to overlay a personalized identification badge onto any image. The tool generates a professional-looking graphic featuring a name and a specific language, which can be positioned at the top, center, or bottom of the image. Users can customize the badge’s appearance with different colors and styles. This tool is ideal for creating personalized profile avatars, identification cards for digital content, or educational materials used in language learning and multicultural presentations.

Leave a Reply

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

Other Image Tools:

Two Photo Merger

Two Photo Combiner

Three Photo Merger Tool

AI Image Idea Search and Generator

AI Powered Image Tool Creator

AI Image Topic Identifier and Idea Generator

Movie and Film Name Style Identifier Tool

Home Style Image Namer

Man In Space Image Generator

Audio and Video Language Dubbing and Localization Text Search Tool

Movie and Film Identifier via TMDB or IMDB from Image

Image To Movie Name Identifier

Image To Movie Scene Identifier

Image To Movie Identifier

Image Based Website Interface SEO Finder Tool

Image To Emoji Converter

VHSRip VCR Style Black Color Image Filter

SEO Topic Search And Idea Generator Tool

Video Audio Track and Language Player and Downloader

Lab Website Icon Search and Topic Generator Tool

HIFI STEREO VHSRip Language Dubbing and Text Localization Tool

Image To Website Interface Address Extractor

Image Prompt Idea Generator and Tool Creator Studio

MP4 DVDRip Video and Photo Language Dubbing Translator Player

Music Audio Mp3 Song Lyric Extractor

Video Platform Audio Track and Language Localization Text Translator

Image Description Text Generator

Video Platform Audio Track and Localization Metadata Screenshot Tool

Video Audio Track and Language Translator Tool

Video and Audio Metadata and Format Information Extractor Tool

Video Platform Screenshot and Rip Effect Converter

YouTube Video Audio Track and Auto Dubbing Translator Player

YouTube Auto-Dubbing Multi-Language Audio Track Translator Tool

Video Platform Audio Track and Text Language Translator Tool

AI Video Language Dubbing and Translation Generator

Image To Movie Name and Film Title Extractor

See All →