Please bookmark this page to avoid losing your image tool!

Three Photo Mediateka

(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, mode = 'triptych', gap = 20, backgroundColor = '#ffffff', cornerRadius = 0) {
    // Parse numeric string parameters if necessary
    gap = Number(gap);
    cornerRadius = Number(cornerRadius);
    mode = mode.toLowerCase();

    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');

    const w = originalImg.width;
    const h = originalImg.height;

    // Helper function to draw an image with optional rounded corners
    function drawRoundedImage(sourceImg, sx, sy, sw, sh, dx, dy, dw, dh, radius) {
        if (radius > 0) {
            ctx.save();
            ctx.beginPath();
            ctx.moveTo(dx + radius, dy);
            ctx.lineTo(dx + dw - radius, dy);
            ctx.quadraticCurveTo(dx + dw, dy, dx + dw, dy + radius);
            ctx.lineTo(dx + dw, dy + dh - radius);
            ctx.quadraticCurveTo(dx + dw, dy + dh, dx + dw - radius, dy + dh);
            ctx.lineTo(dx + radius, dy + dh);
            ctx.quadraticCurveTo(dx, dy + dh, dx, dy + dh - radius);
            ctx.lineTo(dx, dy + radius);
            ctx.quadraticCurveTo(dx, dy, dx + radius, dy);
            ctx.closePath();
            ctx.clip();
            ctx.drawImage(sourceImg, sx, sy, sw, sh, dx, dy, dw, dh);
            ctx.restore();
        } else {
            ctx.drawImage(sourceImg, sx, sy, sw, sh, dx, dy, dw, dh);
        }
    }

    if (mode === 'repeat') {
        // "Repeat" mode: Shows the complete image three times sequentially
        canvas.width = (w * 3) + (gap * 2);
        canvas.height = h;

        // Draw Background
        ctx.fillStyle = backgroundColor;
        ctx.fillRect(0, 0, canvas.width, canvas.height);

        // Draw 3 instances of the full image
        drawRoundedImage(originalImg, 0, 0, w, h, 0, 0, w, h, cornerRadius);
        drawRoundedImage(originalImg, 0, 0, w, h, w + gap, 0, w, h, cornerRadius);
        drawRoundedImage(originalImg, 0, 0, w, h, (w * 2) + (gap * 2), 0, w, h, cornerRadius);

    } else {
        // Default "Triptych" mode: Splitting the image into three vertical panels
        const partWidth = w / 3;
        canvas.width = w + (gap * 2);
        canvas.height = h;

        // Draw Background
        ctx.fillStyle = backgroundColor;
        ctx.fillRect(0, 0, canvas.width, canvas.height);

        // Part 1: Left Third
        drawRoundedImage(
            originalImg, 
            0, 0, partWidth, h, 
            0, 0, partWidth, h, 
            cornerRadius
        );

        // Part 2: Middle Third
        drawRoundedImage(
            originalImg, 
            partWidth, 0, partWidth, h, 
            partWidth + gap, 0, partWidth, h, 
            cornerRadius
        );

        // Part 3: Right Third
        drawRoundedImage(
            originalImg, 
            partWidth * 2, 0, partWidth, h, 
            (partWidth * 2) + (gap * 2), 0, partWidth, h, 
            cornerRadius
        );
    }

    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

Three Photo Mediateka is an image processing tool designed to transform a single image into a stylized three-part layout. It offers two primary modes: ‘Triptych’ mode, which splits a single image into three vertical panels, and ‘Repeat’ mode, which displays the full image three times side-by-side. Users can customize the output by adjusting the spacing between images, choosing a background color, and applying rounded corners to the image panels. This tool is useful for creating artistic social media posts, cinematic photo collages, or decorative digital assets.

Leave a Reply

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

Other Image Tools:

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

Image Based Software Program Identifier

Audio Lyric MP3 Player and Downloader

Song Lyric MP3 Player and Downloader

AI Powered Image Tool Idea Generator

Image Movie Studio Company Identifier

See All →