Please bookmark this page to avoid losing your image tool!

Image Food Delivery Service 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, title = "Доставка Продуктов", price = "500 ₽", deliveryTime = "15-30 мин", rating = "4.8 ★", promoText = "Скидка 20%") {
    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');

    // Set fixed card dimensions typically used in food delivery UI
    const targetWidth = 800;
    const targetHeight = 600;
    canvas.width = targetWidth;
    canvas.height = targetHeight;

    // Helper for rounded rectangles (ensures cross-browser compatibility)
    function fillRoundRect(x, y, w, h, r) {
        ctx.beginPath();
        ctx.moveTo(x + r, y);
        ctx.lineTo(x + w - r, y);
        ctx.quadraticCurveTo(x + w, y, x + w, y + r);
        ctx.lineTo(x + w, y + h - r);
        ctx.quadraticCurveTo(x + w, y + h, x + w - r, y + h);
        ctx.lineTo(x + r, y + h);
        ctx.quadraticCurveTo(x, y + h, x, y + h - r);
        ctx.lineTo(x, y + r);
        ctx.quadraticCurveTo(x, y, x + r, y);
        ctx.closePath();
        ctx.fill();
    }

    // 1. Draw Image with Object-Cover sizing to fit the 800x600 card perfectly
    const scale = Math.max(targetWidth / originalImg.width, targetHeight / originalImg.height);
    const drawW = originalImg.width * scale;
    const drawH = originalImg.height * scale;
    const drawX = (targetWidth - drawW) / 2;
    const drawY = (targetHeight - drawH) / 2;
    
    ctx.drawImage(originalImg, drawX, drawY, drawW, drawH);

    // 2. Draw Bottom Dark Gradient for readability
    const gradient = ctx.createLinearGradient(0, targetHeight * 0.4, 0, targetHeight);
    gradient.addColorStop(0, 'rgba(0,0,0,0)');
    gradient.addColorStop(0.6, 'rgba(0,0,0,0.7)');
    gradient.addColorStop(1, 'rgba(0,0,0,0.9)');
    ctx.fillStyle = gradient;
    ctx.fillRect(0, 0, targetWidth, targetHeight);

    // 3. Typography setup
    const fontFamily = "'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
    ctx.textBaseline = 'middle';

    // 4. Promo Badge (Top Left)
    if (promoText) {
        ctx.font = `bold 24px ${fontFamily}`;
        const promoWidth = ctx.measureText(promoText).width;
        ctx.fillStyle = '#00c354'; // Fresh Green
        fillRoundRect(30, 30, promoWidth + 30, 46, 12);
        ctx.fillStyle = '#ffffff';
        ctx.fillText(promoText, 45, 54);
    }

    // 5. Title / Service Name
    ctx.font = `bold 48px ${fontFamily}`;
    ctx.fillStyle = '#ffffff';
    // Add text shadow for extra pop
    ctx.shadowColor = 'rgba(0, 0, 0, 0.5)';
    ctx.shadowBlur = 10;
    ctx.shadowOffsetX = 2;
    ctx.shadowOffsetY = 2;
    const titleX = 40;
    const titleY = targetHeight - 140;
    ctx.fillText(title, titleX, titleY);
    // Reset shadow for badges
    ctx.shadowColor = 'transparent';

    // 6. Badges Row (Price, Delivery Time, Rating)
    const badgeY = targetHeight - 80;
    const badgeHeight = 50;
    const badgeRadius = 16;
    let currentX = titleX;

    // Price Badge
    if (price) {
        ctx.font = `bold 28px ${fontFamily}`;
        const priceWidth = ctx.measureText(price).width;
        ctx.fillStyle = '#ff4500'; // Appetizing Orange-Red
        fillRoundRect(currentX, badgeY, priceWidth + 40, badgeHeight, badgeRadius);
        ctx.fillStyle = '#ffffff';
        ctx.fillText(price, currentX + 20, badgeY + (badgeHeight / 2));
        currentX += priceWidth + 60;
    }

    // Delivery Time Badge
    if (deliveryTime) {
        ctx.font = `bold 24px ${fontFamily}`;
        const timeWidth = ctx.measureText(deliveryTime).width;
        ctx.fillStyle = 'rgba(255, 255, 255, 0.25)'; // Translucent White
        fillRoundRect(currentX, badgeY, timeWidth + 40, badgeHeight, badgeRadius);
        ctx.fillStyle = '#ffffff';
        ctx.fillText(deliveryTime, currentX + 20, badgeY + (badgeHeight / 2));
        currentX += timeWidth + 60;
    }

    // Rating Badge
    if (rating) {
        ctx.font = `bold 24px ${fontFamily}`;
        const ratingWidth = ctx.measureText(rating).width;
        ctx.fillStyle = '#ffc107'; // Golden Amber
        fillRoundRect(currentX, badgeY, ratingWidth + 40, badgeHeight, badgeRadius);
        ctx.fillStyle = '#212529'; // Dark text
        ctx.fillText(rating, currentX + 20, badgeY + (badgeHeight / 2));
    }

    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 transforms standard images into professional-looking food delivery service cards. It overlays an image with a stylized UI containing customizable elements such as a service title, price, delivery time, customer ratings, and promotional badges. It is ideal for restaurant owners, food bloggers, or marketing professionals looking to create high-quality, consistent visual content for social media, digital menus, or advertising campaigns.

Leave a Reply

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

Other Image Tools:

Image To Target Language Dubbing Text Translator

Image Search Tools

Image and Video Player

Image Flip and Reverse Tool

Three Photo Mediateka

Image Description Identifier Tool

Two Photo Comparison Search Tool

Image Name Official Tool

Video Audio Track Language Dubbing Translator Tool

Multi Language HiFi VHSRip and DVDRip Audio Player

Image To Stylized Character Hero Generator

AI Image Idea Generator

Image Topic Search and Mediateka Creator Tool

Image Based Advanced Movie Identifier Search Tool

Image Movie Identifier Advanced Search Tool

Image Aspect Ratio Calculator By Numbers

SEO Topic Search Image Finder Tool

VHSRip and DVDRip Audio Track and Language Translator Tool

Video Audio Track and Language Dub Text Translator Downloader

HIFI VHSRip Mono Effects Image Applier

Image To Online Website Address Converter

YouTube Video Title Renamer Based on URL Tool

Image URL Web Interface Tool

Movie Languages and Auto Dubbing Translation Tool

Video Platform Metadata and DVDRip Text Downloader Tool

YouTube Video Multilingual Auto Dubbing Tool

Video Platform Language Dubbing Text Downloader and Translator Tool

HIFI VHSRip Video Metadata and Subtitle Downloader

Video and Audio Metadata Text Extractor Tool

Search and Download TV Video Platform Audio Dubbing Text Translator

Video Platform Audio Track and Language Dubbing Text Downloader

Video Platform Audio Track Language Dub Translator and Downloader

Video Platform Audio Track Language Translator and Downloader

Video Platform Audio Track DVDRip Player Name Language Extractor

Image To Website Interface Address Converter

Image Name And Topic Identifier Tool

See All →