Please bookmark this page to avoid losing your image tool!

Cordelia Image 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, intensity = 1.0) {
    // Create canvas matching the original image dimensions
    const canvas = document.createElement('canvas');
    canvas.width = originalImg.width;
    canvas.height = originalImg.height;
    const ctx = canvas.getContext('2d');
    
    // Draw original image on the canvas
    ctx.drawImage(originalImg, 0, 0);
    
    // Get image data to manipulate pixels
    const imgData = ctx.getImageData(0, 0, canvas.width, canvas.height);
    const data = imgData.data;

    // "Cordelia" Effect: A soft, warm, vintage look with a slight magenta tint and boosted contrast
    const contrastLevel = 1.15; // Boost contrast
    const intensityNum = Number(intensity) || 1.0;
    
    for (let i = 0; i < data.length; i += 4) {
        let r = data[i];
        let g = data[i + 1];
        let b = data[i + 2];

        // 1. Adjust Contrast
        let adjustedR = ((r / 255 - 0.5) * contrastLevel + 0.5) * 255;
        let adjustedG = ((g / 255 - 0.5) * contrastLevel + 0.5) * 255;
        let adjustedB = ((b / 255 - 0.5) * contrastLevel + 0.5) * 255;

        // 2. Apply Custom 'Cordelia' Color Grading (Warm/Magenta highlights)
        adjustedR += 25; 
        adjustedG += 10; 
        adjustedB += 20; 
        
        // 3. Blend based on output intensity parameter, clamp values between 0 and 255
        data[i]     = Math.min(255, Math.max(0, r + (adjustedR - r) * intensityNum));
        data[i + 1] = Math.min(255, Math.max(0, g + (adjustedG - g) * intensityNum));
        data[i + 2] = Math.min(255, Math.max(0, b + (adjustedB - b) * intensityNum));
        // data[i+3] is the alpha channel, leaving it unchanged.
    }

    // Put modified data back onto the canvas
    ctx.putImageData(imgData, 0, 0);
    
    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 Cordelia Image Tool is a photo enhancement utility designed to apply a soft, vintage-style aesthetic to your images. It works by boosting contrast and applying a warm color grading with subtle magenta highlights. Users can adjust the intensity of the effect to achieve a customized look. This tool is ideal for photographers and social media enthusiasts looking to give their photos a nostalgic, cinematic, or stylized feel for creative projects and digital content.

Leave a Reply

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