yoya/io_icc

ICC Color Profile library

v1.1.3 2018-11-22 16:24 UTC

This package is auto-updated.

Last update: 2024-10-29 14:07:15 UTC


README

ICC Profile I/O library

prepare

% composer require yoya/io_icc

usage

iccdump

% php vendor/yoya/io_icc/sample/iccdump.php -f sRGB.icc | head
Header:
    ProfileSize:588
    CMMType:lcms
    ProfileVersion: Major:4 Minor:30
    ProfileDeviceClass:mntr
    ColorSpace:RGB
    ConnectionSpace:XYZ
    DataTimeCreated: Year:2017 Month:7 Day:24 Hours:10 Minutes:0 Seconds:38
    acspSignature:acsp
    PrimaryPlatform:APPL
...

iccgbr

% php vendor/yoya/io_icc/sample/iccgbr.php sRGB.icc > sGBR.icc

iccedit

% php vendor/yoya/io_icc/sample/iccedit.php GBR.icc
gTRC:curv
gXYZ:XYZ
% php vendor/yoya/io_icc/sample/iccedit.php GBR.icc gTRC
type:curv
CurveValues:2.19921875
% php vendor/yoya/io_icc/sample/iccedit.php GBR.icc gTRC CurveValues:0.82 > GBR_gTRC-0.82.icc

iccdeltags

% php vendor/yoya/io_icc/sample/iccdeltags.php sRGB_v4_ICC_preference_displayclass.icc | grep B2A
B2A0
B2A1
% php vendor/yoya/io_icc/sample/iccdeltags.php sRGB_v4_ICC_preference_displayclass.icc B2A0 B2A1 > sRGB_v4_ICC_preference_displayclass_noB2A.icc

icc profile sample

RGB

CMYK

XYZ