Please bookmark this page to avoid losing your image tool!

Photo Beauty Power Showcase

(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.
/**
 * Applies a "beauty" filter to an image, enhancing colors, contrast, and adding a soft glow and warmth.
 * This function showcases various image enhancement techniques.
 *
 * @param {HTMLImageElement} originalImg The original image object to process.
 * @param {number} softness The intensity of the soft focus/glow effect (0-100). Default is 30.
 * @param {number} saturation The color saturation percentage (0-200). 100 is original. Default is 120.
 * @param {number} contrast The contrast percentage (0-200). 100 is original. Default is 110.
 * @param {number} brightness The brightness percentage (0-200). 100 is original. Default is 105.
 * @param {number} warmth The color temperature adjustment (-100 for cool, 100 for warm). Default is 10.
 * @returns {HTMLCanvasElement} A new canvas element with the processed image.
 */
function processImage(originalImg, softness = 30, saturation = 120, contrast = 110, brightness = 105, warmth = 10) {
    // 1. Create canvas and context
    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');
    const w = originalImg.naturalWidth;
    const h = originalImg.naturalHeight;
    canvas.width = w;
    canvas.height = h;

    // 2. Clamp and validate parameters to safe ranges
    softness = Math.max(0, Math.min(100, softness));
    saturation = Math.max(0, Math.min(200, saturation));
    contrast = Math.max(0, Math.min(200, contrast));
    brightness = Math.max(0, Math.min(200, brightness));
    warmth = Math.max(-100, Math.min(100, warmth));

    // 3. Apply base color/tone adjustments using canvas filters
    ctx.filter = `saturate(${saturation}%) contrast(${contrast}%) brightness(${brightness}%)`;
    ctx.drawImage(originalImg, 0, 0, w, h);
    
    // Reset filter for next steps, as filters are stateful
    ctx.filter = 'none';

    // 4. Apply softness/glow effect
    if (softness > 0) {
        // We use a temporary canvas to create the blurred layer to avoid read-modify-write issues
        const tempCanvas = document.createElement('canvas');
        const tempCtx = tempCanvas.getContext('2d');
        tempCanvas.width = w;
        tempCanvas.height = h;

        // Draw the already color-corrected image to the temporary canvas
        tempCtx.drawImage(canvas, 0, 0);

        // Now, draw the blurred temporary canvas back onto the main canvas with a "soft-light" blend mode
        const blurAmount = (softness / 100) * 5; // Max blur of 5px
        const glowOpacity = (softness / 100) * 0.35; // Max opacity of 0.35

        ctx.globalAlpha = glowOpacity;
        ctx.globalCompositeOperation = 'soft-light';
        ctx.filter = `blur(${blurAmount}px)`;
        
        ctx.drawImage(tempCanvas, 0, 0, w, h);
        
        // Reset context properties to defaults
        ctx.globalAlpha = 1.0;
        ctx.globalCompositeOperation = 'source-over';
        ctx.filter = 'none';
    }

    // 5. Apply warmth/coolness filter by overlaying a colored layer
    if (warmth !== 0) {
        const warmAlpha = Math.abs(warmth) / 100 * 0.2; // Max alpha of 0.2 for a subtle tint
        ctx.globalCompositeOperation = 'overlay';
        ctx.globalAlpha = warmAlpha;

        if (warmth > 0) {
            // Warm tones (orange/yellow)
            ctx.fillStyle = '#ff9900';
        } else {
            // Cool tones (blue)
            ctx.fillStyle = '#0066ff';
        }
        ctx.fillRect(0, 0, w, h);

        // Reset context properties to defaults
        ctx.globalCompositeOperation = 'source-over';
        ctx.globalAlpha = 1.0;
    }
    
    // 6. Return the final canvas
    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

Photo Beauty Power Showcase is an online tool that applies a beauty filter to images, enhancing their aesthetic appeal. It allows users to adjust various parameters such as softness, saturation, contrast, brightness, and warmth to create visually stunning images. This tool can be used for retouching photos, creating social media content, enhancing portraits, and any other scenario where improving image quality and vibrancy is needed.

Leave a Reply

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