HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue

Hald clut image

← getVersion   houghLineImage →
Replaces colors in the image using a Hald lookup table. Hald images can be created using HALD color coder.

A Hald clut is a special image that encodes how source colors should be mapped to output colors. Full details of how they work can be found on either Quel Solaar - Clut page, or RawTherapee - using different cluts to simulate film.

Lots more HaldCLUTs are behind that link.

This HaldCLUT image used for the selected settings:

View full size hald image.


function haldClutImage($image_path, $hald_clut_type)
    $imagick = new \Imagick(realpath($image_path));
    $haldClutImage = new \Imagick(realpath($hald_clut_type));
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();