Please bookmark this page to avoid losing your image tool!

Image Task Performer

(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, taskParams = "blur", intensity = 5) {
    const canvas = document.createElement('canvas');
    canvas.width = originalImg.width;
    canvas.height = originalImg.height;
    
    const ctx = canvas.getContext('2d');
    
    // Since "Any Task" is generic, this implementation acts as a versatile
    // filter-based Image Task Performer supporting various basic image tasks.
    let filterString = "none";
    const value = Number(intensity);
    
    switch (taskParams.toLowerCase()) {
        case 'grayscale':
            filterString = `grayscale(${value > 100 ? 100 : value}%)`;
            break;
        case 'blur':
            filterString = `blur(${value}px)`;
            break;
        case 'brightness':
            filterString = `brightness(${value}%)`;
            break;
        case 'contrast':
            filterString = `contrast(${value}%)`;
            break;
        case 'invert':
            filterString = `invert(${value > 100 ? 100 : value}%)`;
            break;
        case 'sepia':
            filterString = `sepia(${value > 100 ? 100 : value}%)`;
            break;
        case 'saturate':
            filterString = `saturate(${value}%)`;
            break;
        case 'hue-rotate':
            filterString = `hue-rotate(${value}deg)`;
            break;
        case 'none':
        default:
            filterString = 'none';
            break;
    }
    
    ctx.filter = filterString;
    ctx.drawImage(originalImg, 0, 0, canvas.width, canvas.height);
    
    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 Task Performer is a versatile image processing tool that allows users to apply various visual filters and adjustments to their images. It supports a range of effects including grayscale, blur, brightness, contrast, inversion, sepia, saturation, and hue rotation. This tool is useful for quickly enhancing photo quality, creating artistic effects, or preparing images for different digital platforms by adjusting their aesthetic properties.

Leave a Reply

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