Please bookmark this page to avoid losing your image tool!

Image Glazed Donut Filter Effect Application

(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, glazeBrightness = 1.15, glazeContrast = 1.3, glazeSmoothness = 1.5, glazeRichness = 1.1) {
    const canvas = document.createElement('canvas');
    const ctx = canvas.getContext('2d');

    // Ensure the canvas has the same dimensions as the original image
    const width = originalImg.naturalWidth || originalImg.width;
    const height = originalImg.naturalHeight || originalImg.height;
    canvas.width = width;
    canvas.height = height;

    // Build the filter string
    // A "glazed" effect typically involves:
    // - Increased brightness: Makes it look illuminated.
    // - Increased contrast: Enhances highlights and shadows, giving a "shiny" appearance.
    // - Slight blur (smoothness): Simulates the smooth surface of a glaze.
    // - Increased saturation (richness): Makes colors more vibrant and appealing.

    let filterEffects = [];

    if (glazeBrightness !== 1) { // 1 is the default (no change) for brightness
        filterEffects.push(`brightness(${glazeBrightness})`);
    }
    if (glazeContrast !== 1) { // 1 is the default for contrast
        filterEffects.push(`contrast(${glazeContrast})`);
    }
    if (glazeSmoothness > 0) { // 0px blur means no blur
        filterEffects.push(`blur(${glazeSmoothness}px)`);
    }
    if (glazeRichness !== 1) { // 1 is the default for saturation
        filterEffects.push(`saturate(${glazeRichness})`);
    }

    const filterString = filterEffects.join(' ');

    if (filterString) {
        ctx.filter = filterString;
    }

    // Draw the image onto the canvas. The filter will be applied.
    ctx.drawImage(originalImg, 0, 0, width, height);

    // Reset filter if any further drawing without filter is needed on this canvas (not in this case)
    // ctx.filter = 'none'; 

    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 Glazed Donut Filter Effect Application is a tool that enhances images by applying a ‘glazed’ filter effect. This effect increases brightness and contrast, simulating a shiny appearance, while also adding a smoothness to the image and enriching its color saturation. Users can utilize this tool for a variety of purposes, such as enhancing product photos to make them more appealing for online listings, improving the visual aesthetics of social media images, or simply adding a creative touch to personal photos. The tool is user-friendly and allows for customizable settings to achieve the desired effect.

Leave a Reply

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