Git Product home page Git Product logo

embediccprofile's Introduction

EmbedICCProfile

此程序可以向 JPEG 图像中嵌入 ICC 色彩配置文件。

此程序已在:
x86 / Windows 10 / MSVC 15
x86 / macOS 10.13 / clang-902
ARM / Raspbian GUN-Linux 8 / g++-4.9.2
成功通过编译并正常工作。

什么是 ICC 色彩配置文件

ICC 色彩配置文件为应用程序提供参考,指示图像色彩的正确显示方式。

上面是两张由 iPhone 7 拍摄的同一张照片的局部对比图,第一张图片没有嵌入 ICC 配置文件,而第二张图片使用本程序嵌入了正确的配置文件。

由于 iPhone 7 拍摄的照片使用 Display P3 色域存储,所以当这张图片出现在其他 sRGB 设备上时,如果没有正确的色彩配置文件的指示,应用程序将无法显示准确的色彩。

安装

git clone https://github.com/liuziangexit/EmbedICCProfile
cd EmbedICCProfile/src
cmake CMakeLists.txt
make
make install

使用

EmbedICCProfile xxx.jpg xxx.icc

如: EmbedICCProfile 1.jpg "Display P3.icc"

您可能需要键入文件的绝对路径,此外,当文件名包含空格时,您应该使用英文引号将其括起。
运行后,会将指定的 ICC 配置文件(参数2)嵌入到指定的 JPG 文件(参数1)。

代码库文件夹说明

example 中存放了一张使用 iPhone 7 拍摄的 Display P3 色域的照片,但是并未内嵌 ICC 色彩配置文件。您可以使用本程序向其中嵌入 Display P3 配置文件,并对比嵌入前和嵌入后的不同。

icc-profile 中存放了许多常用色彩文件,包括 Display P3 和 sRGB 等。

src 文件夹中包含了此程序的所有源代码。

embediccprofile's People

Contributors

liuziangexit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

embediccprofile's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.