PHP code example of wwaz / colorprofile-php

1. Go to this page and download the library: Download wwaz/colorprofile-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wwaz / colorprofile-php example snippets




$profile = colorprofile()->cmyk();
echo $profile->filename();



$profile = wwaz\Colorprofile\Facades\Finder::cmyk();
// or
$profile = colorprofile()->cmyk();

echo $profile->name();
// ISOcoated_v2_eci

echo $profile->filename();
// absolute path to the .icc file

echo $profile->space();
// rgb|cmyk



wwaz\Colorprofile\Settings::path('/your/path/to/profiles');
wwaz\Colorprofile\Settings::defaultProfile('cmyk', 'ISOcoated_v2_eci');
wwaz\Colorprofile\Settings::defaultProfile('rgb', 'sRGB_v4_ICC_preference');
bash
composer