Please bookmark this page to avoid losing your image tool!

Image To Thx 1983-2023 Search Tool

(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, query = "Thx 1983-2023", position = "center") {
    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 as the background
    ctx.drawImage(originalImg, 0, 0);

    // Calculate dimensions for the search bar overlay
    let barWidth = width * 0.8;
    if (barWidth > 800) barWidth = 800;
    if (barWidth < 200) barWidth = width * 0.95;

    let barHeight = Math.max(40, barWidth * 0.1);
    if (barHeight > width * 0.15) barHeight = width * 0.15;
    if (barHeight > height * 0.4) barHeight = height * 0.4;

    const x = (width - barWidth) / 2;
    let y;

    // Determine vertical position
    switch (position.toLowerCase()) {
        case 'top':
            y = Math.max(20, height * 0.1);
            break;
        case 'bottom':
            y = Math.min(height - barHeight - 20, height * 0.9 - barHeight);
            break;
        case 'center':
        default:
            y = (height - barHeight) / 2;
            break;
    }

    // Apply drop shadow for the search bar
    ctx.shadowColor = 'rgba(0, 0, 0, 0.35)';
    ctx.shadowBlur = barHeight * 0.3;
    ctx.shadowOffsetY = barHeight * 0.15;

    // Draw rounded rectangle (pill shape) for the search bar
    ctx.beginPath();
    const radius = barHeight / 2;
    ctx.moveTo(x + radius, y);
    ctx.lineTo(x + barWidth - radius, y);
    ctx.quadraticCurveTo(x + barWidth, y, x + barWidth, y + radius);
    ctx.lineTo(x + barWidth, y + barHeight - radius);
    ctx.quadraticCurveTo(x + barWidth, y + barHeight, x + barWidth - radius, y + barHeight);
    ctx.lineTo(x + radius, y + barHeight);
    ctx.quadraticCurveTo(x, y + barHeight, x, y + barHeight - radius);
    ctx.lineTo(x, y + radius);
    ctx.quadraticCurveTo(x, y, x + radius, y);
    ctx.closePath();

    ctx.fillStyle = '#ffffff';
    ctx.fill();

    // Reset shadow to avoid affecting other drawings
    ctx.shadowColor = 'transparent';

    // Draw magnifying glass icon
    ctx.strokeStyle = '#9aa0a6';
    ctx.lineWidth = Math.max(2, barHeight * 0.06);
    ctx.lineCap = 'round';
    ctx.beginPath();
    const cx = x + barHeight * 0.65;
    const cy = y + barHeight * 0.45;
    const r = barHeight * 0.15;
    ctx.arc(cx, cy, r, 0, Math.PI * 2);
    ctx.moveTo(cx + r * 0.707, cy + r * 0.707);
    ctx.lineTo(cx + r * 2.0, cy + r * 2.0);
    ctx.stroke();

    // Draw search text
    ctx.fillStyle = '#202124';
    ctx.font = `${barHeight * 0.4}px Arial, sans-serif`;
    ctx.textBaseline = 'middle';
    
    // Prevent text from overflowing the search bar on the right side
    ctx.save();
    ctx.beginPath();
    ctx.rect(x + barHeight * 1.3, y, barWidth - barHeight * 1.8, barHeight);
    ctx.clip();
    
    ctx.fillText(query, x + barHeight * 1.3, y + barHeight / 2);
    ctx.restore();

    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

This tool allows users to overlay a stylized search bar onto an existing image. It features a customizable search query and offers different positioning options, such as top, center, or bottom, to ensure the overlay fits the visual composition. This can be used for creating mockups, designing UI/UX concepts, or generating social media graphics that mimic search interface aesthetics.

Leave a Reply

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

Other Image Tools:

20th Century Fox 1935-2020 Variants Image Viewer

Image To Detailed Audio Description Generator

Detailed Dreamworks Image Variant Generator

Image To The Pink Panther Show Episode 1-124 Search Tool

Image To Tubi September 2026 Coming Soon Movie Search Tool

Image To Tubi Sep 2026 Movie Search Tool

Image To Dottie Chicken Movie Search Tool

Image To Gahlina Pintadinha Movie Search Tool

Image and Video Big Hero 6 The Series Search Tool

Image To Illumination Entertainment Movie Search Tool

Image Soft Bubble Overlay Adder

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

See All →