Please bookmark this page to avoid losing your image tool!

Image First Work 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, caption = "Первая работа", frameColor = "#ffffff", textColor = "#333333") {
    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');

    // Calculate dimensions for a Polaroid-style frame
    // Frame size is proportional to the overall image dimensions
    const border = Math.max(originalImg.width, originalImg.height) * 0.05;
    const bottomBorder = border * 3.5; // Larger bottom area for the caption

    canvas.width = originalImg.width + (border * 2);
    canvas.height = originalImg.height + border + bottomBorder;

    // 1. Draw the frame (background)
    ctx.fillStyle = frameColor;
    ctx.fillRect(0, 0, canvas.width, canvas.height);

    // 2. Add a very subtle inner drop shadow for a more realistic framed effect
    ctx.shadowColor = 'rgba(0, 0, 0, 0.3)';
    ctx.shadowBlur = 15;
    ctx.shadowOffsetX = 3;
    ctx.shadowOffsetY = 3;

    // 3. Draw the original image onto the canvas
    ctx.drawImage(originalImg, border, border, originalImg.width, originalImg.height);

    // Reset shadows so it doesn't apply to our text
    ctx.shadowColor = 'transparent';
    ctx.shadowBlur = 0;
    ctx.shadowOffsetX = 0;
    ctx.shadowOffsetY = 0;

    // 4. Draw the caption text ("Первая работа" / "First work")
    ctx.fillStyle = textColor;
    ctx.textAlign = 'center';
    ctx.textBaseline = 'middle';
    
    // Calculate appropriate font size depending on the bottom border's height
    const fontSize = Math.floor(bottomBorder * 0.35);
    
    // Choose web-safe handwritten-style fonts to convey a creative/draft artwork look
    ctx.font = `italic ${fontSize}px "Segoe Print", "Comic Sans MS", "Bradley Hand", cursive, sans-serif`;

    const textX = canvas.width / 2;
    const textY = canvas.height - (bottomBorder / 2);
    
    // Write the caption, making sure it doesn't exceed the width of the frame space
    ctx.fillText(caption, textX, textY, canvas.width - (border * 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

The Image First Work Tool transforms your images into a classic Polaroid-style format. It adds a customizable frame around your photo and includes a bottom border area where you can add a personalized caption in a handwritten-style font. This tool is ideal for artists, designers, or hobbyists who want to create a professional ‘draft’ or ‘first look’ presentation for their creative projects, or for anyone looking to give their digital photos a nostalgic, physical scrapbook aesthetic.

Leave a Reply

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