bitandblack/iccprofile 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bitandblack/iccprofile

最新稳定版本:1.1.0

Composer 安装命令:

composer require bitandblack/iccprofile

包简介

Reading ICC Color Profiles

README 文档

README

PHP from Packagist Latest Stable Version Total Downloads License

Bit&Black Logo

Bit&Black ICC ColorProfile

Reading ICC Color Profiles. This library is based on the work of Andreas Heigl in org_heigl/color.

Installation

This library is made for the use with Composer. Add it to you project by running $ composer require bitandblack/iccprofile.

Usage

Set up an IccProfile object with the path to a profile or alternatively a string with the profile itself:

<?php

use BitAndBlack\IccProfile\IccProfile;

$iccProfile = new IccProfile('/path/to/SomeProfile.icc');

Access the profile's information then:

<?php 

$space = $iccProfile->getSpace();

This will get something like RGB.

Using the internal profiles

This library holds a lot of ICC profiles in the data folder. To load one of them, you can use the File class:

<?php

use BitAndBlack\IccProfile\File;
use BitAndBlack\IccProfile\FileEnum;
use BitAndBlack\IccProfile\IccProfile;

$file = (string) new File(
    FileEnum::PROFILE_39L_VDM_U24_754520GM
);

$iccProfile = new IccProfile($file);

Help

If you have any questions feel free to contact us under hello@bitandblack.com.

Further information about Bit&Black can be found under www.bitandblack.com.

统计信息

  • 总下载量: 2.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-03