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)); $imagick->haldClutImage($haldClutImage); header("Content-Type: image/jpeg"); echo $imagick->getImageBlob(); }