「ICC プロファイル」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(同期)
(文字列「http://www.thinkwiki.org/」を「https://www.thinkwiki.org/」に置換)
106行目: 106行目:
 
=== ThinkPad ===
 
=== ThinkPad ===
   
IBM/Lenovo の [[Wikipedia:ThinkPad|ThinkPad]] ノートパソコンの [http://www-307.ibm.com/pc/support/site.wss/migr-62923.html モニタープロファイル] ([http://www-307.ibm.com/pc/support/site.wss/migr-44320.html generic]) をサポートしている [http://www.thinkwiki.org/wiki/Colour_profile カラープロファイル] を見てください。
+
IBM/Lenovo の [[Wikipedia:ThinkPad|ThinkPad]] ノートパソコンの [http://www-307.ibm.com/pc/support/site.wss/migr-62923.html モニタープロファイル] ([http://www-307.ibm.com/pc/support/site.wss/migr-44320.html generic]) をサポートしている [https://www.thinkwiki.org/wiki/Colour_profile カラープロファイル] を見てください。
   
 
== ICC プロファイルのロード ==
 
== ICC プロファイルのロード ==

2018年2月6日 (火) 22:49時点における版

一般的なデスクトップの利用に関して、ICC プロファイルは入力または出力デバイスの色の属性に関する正確な情報を含んでいるバイナリファイルです。一つ、または複数のプロファイルをシステムとデバイスに適用することで、グラフィックやドキュメントを編集したり出版するために色を再現することができます。完全に正確な色彩が必要なときは三刺激色彩計や分光測色計を使って ICC プロファイルが較正されます。

プロファイルの作成

ハードウェアの較正やソフトウェアによるプロファイリング、プロファイルを画像や動画に埋め込む色管理の作業では ICC プロファイルが使われます。

測色計や分光計

ディスプレイやプリンター、スキャナなどの正確な較正には測色計や分光計を使うことを強く推奨します。家庭用として購入可能な測色計も存在しています。他のオペレーティングシステムよりも Linux におけるサポートが充実していることもあります。Linux で問題なく使えるハードウェアとして X-Rite ColorMunki Display, DataColor Spyder5 Express あるいはオープンソースハードウェアの ColorHug などが挙げられます。AgyllCMS のドキュメント には他にも Linux をサポートしているデバイスが載っています。

Argyll CMS

Argyll Color Management System はコマンドラインからプロファイルを作成・ロードできるソフトウェアです。argyllcms パッケージでインストールできます。

デバイスのプロファイルを作成する方法については公式の Argyll CMS ドキュメント を読んでください。

DisplayCal

ArgyllCMS には DisplayCal という名前の GUI フロントエンドが存在します。displaycal パッケージでインストールできます。大抵の場合はデフォルト設定で足ります。色温度を昼光色 (6500K)、ガンマ値を 2.2 に設定するのが一般的です。詳しくは DispalGui のドキュメントを読んでください。

ファイルの転送

ICC モニタープロファイルを取得したいときは Windows または macOS 環境でプロファイルを作成することが一番簡単で広く推奨されています。ICC カラープロファイルはオープン標準にあわせて書き出されるので、別のオペレーティングシステムでも問題なく使えます。Linux で特定の分光光度計や測色計が使えない場合、他の OS からプロファイルを転送することで解決できるでしょう: 別の OS でプロファイルを作成して Linux のワークフローに乗せるだけです。プロファイルを作成するシステムにはプロファイルを使う時とまったく同じビデオカードとモニターが必要になります。ICC プロファイルを Windows で作成したら、以下のデフォルトパスからファイルをコピーしてください:

C:\WINDOWS\System32\spool\drivers\color

macOS は通常、一つ、または二つの場所に ICC プロファイルを保存します:

/Library/ColorSync/Profiles
/Users/USER_NAME/Library/ColorSync/Profile

適切な .icc/.icm ファイルをコピーしたら、デバイスプロファイルを使用したいシステムにインストールしてください。Linux におけるデバイスプロファイルのインストールディレクトリは以下の通りです:

/usr/share/color/icc
/usr/local/share/color/icc
/home/USER_NAME/.color/icc
ノート: Ensure that the calibrated contrast, brightness and RGB settings of the monitor do not change between the time of calibration and the loading of the ICC profile. Use this method only if you are absolutely certain that neither Linux nor the other OS does anything behind your back (in video drivers or vendor utilities) that alters the signal actually sent to the display, or the way the display interprets the signal. Watch out for "Broadcast RGB" or similar settings. One concrete example where profiling in Windows and Linux yields significantly different results is the Lenovo Ideapad Yoga 2 Pro laptop, because these OSes program the flat panel controller in very different ways.

Gnome Color Manager

Gnome では gnome-color-manager を使って簡単に ICC プロファイルを作成できます。コントールセンターからアクセスすることができ、使い方はとても簡単です。この機能を使用するには測色計が必要になります。

手動

gnome-settings-daemon が起動してから、次のコマンドを実行:

$ colormgr get-devices 

そして使用しているモニターの Device ID 行を確認してください。例えば xrandr-Lenovo Group Limited だった場合、次のコマンドでキャリブレーションを開始します:

gcm-calibrate --device "xrandr-Lenovo Group Limited"

LPROF ICC Profiler

LPROF はグラフィカルユーザーインターフェースが付属した ICC プロファイラです。Arch User Repository (AUR)lprofAUR パッケージでインストールすることができます。

ノート: 以下のウォークスルーは ArchWiki の Using LPROF to Profile Monitors から修正を加えられています。

モニターのキャリブレーション

コントラスト/明るさ

Adjust the lighting in the room to what you will be using when working. Even if your screen is coated with an anti-reflective coating, you should avoid light falling directly on it. Let your monitor warm up for at least an hour for the image to get stabilized. If your calibration device has an ambient diffuser, adjust your room brightness to reach the recommended target lux point.

  1. モニターのコントラストを最大 (100%) に設定してください。
  2. Next, display a pure black over entire screen by creating a small, black PNG image (all pixels have RGB = 0, 0, 0) and opening it up in a picture viewer that is capable of displaying an image in fullscreen mode without any controls.
  3. Reduce the vertical size of the monitor screen (not the PNG image displayed by a picture viewer but the whole of what's displayed on the screen) to 60% to 70% of the full height. What is revealed above and below the picture is called a non-scanned area, and since that area is not receiving any voltage, it is the blackest of black your monitor is capable of displaying.
  4. Locate the brightness control (usually a sun, circle with rays projecting from it's edges) and lower the value until the black image matches the non-scanned area.
色温度

色温度の設定は正午に行ってください。固定値の色温度しか設定できない場合、昼間になるまで待つ必要はありません。6500K に設定してください。

Place your monitor so that you can see outside the window and your screen at the same time. For this step, you also need to create a white square image (RGB = 255, 255, 255), roughly 10 by 10 centimeters (4 by 3 inches). Using the same Gwenview technique as with brightness/contrast, display the white square on a pure black background.

  1. First, prepare your eyes by staring at the outside world for a while. Let them adjust to the daylight viewing condition for a few minutes.
  2. Glance at the monitor, and the white square for a few second (it has to be short, because eyes will readjust quickly).
  3. If the square seems yellowish, you need higher color temperature, or if it has a blueish cast, the temperature needs to be lowered.
  4. Keep glancing, looking out the window, and adjusting the white temperature, until the square looks pure white

Take your time with the steps described above. It is essential to get it right.

モニターのプロファイル

lprof を起動してください。右側にタブが複数ある巨大なウィンドウが表示されます。

  1. Monitor Profiler タグをクリックしてください。それから巨大な Enter monitor values >> ボタンをクリックしてください。
  2. 白色点を 6500K (daylight) に設定してください。
  3. Primaries should be set to either SMPTE RP145-1994, or EBU Tech.3213-E or P22, or whatever appropriate values for your monitor. If you come across correct values for your monitor, enter those by selecting User Defined from the drop-down. If in doubt, you may use P22 for all monitors with Trinitron CRTs (in this case, Trinitron is not related to Sony Trinitron mointors and TVs), and SMPTE RP145-1994 for other CRTs.
  4. Set Gamma and Black Point ボタンをクリックしてください。
  5. You will now see a full-screen view of two charts with some controls at the bottom.
  6. Uncheck the Link channels check-box and adjust individual Red, Green, and Blue gamma by either moving the slider left or right, or by entering and changing values in the three boxes to the left. The goal is to make the chart on the left (the smaller square one) flat. When you are satisfied with how it looks, check the Link channels check-box and adjust the gamma again.
  7. When you are done, click OK. Click OK again.

When you are finished entering monitor values, you might want to enter some information about the monitor. This is not mandatory, but it is always nice to know what profile is for what.

  1. Profile identification ボタンをクリックしてください。
  2. データを入力してください。
  3. OK をクリックして完了です。

設定が完了したら Output Profile File の隣にある '...' ボタンをクリックしてプロファイルに名前を付けてください。例: somemonitor.iccCreate Profile ボタンをクリックするとプロファイルが作成されます。

ThinkPad

IBM/Lenovo の ThinkPad ノートパソコンの モニタープロファイル (generic) をサポートしている カラープロファイル を見てください。

ICC プロファイルのロード

ICC プロファイルはセッションデーモンあるいは専用の ICC ローダーでロードします。GNOME と KDE には colord から ICC プロファイルをロードすることができるデーモンが付属しています。gnome-settings-daemoncolord-kde と一緒に colord を使用する場合、プロファイルは自動的にロードされます。GNOME や KDE を使っていない場合、独立したデーモンをインストールすることができます。xiccd はデスクトップ環境に依存しないデーモンです。二つの ICC 対応デーモンを同時に起動してはいけません (例: gnome-settiongs-daemon と xiccd)。

ICC に対応しているセッションデーモンを使用していない場合、ICC ローダーをどれか一つ使ってください: xcalib, dispwin, dispcalGUI-apply-profiles など。複数のローダーを同時に使用すると環境が制御できなくなります (一番最後に実行されたローダーがキャリブレーションを設定し、それ以前にロードされたキャリブレーションは上書きされます)。

特定の ICC ローダーを使う前に、ツールによって設定されるものが違うことに注意してください。例えばキャリブレーションカーブだけを設定したり (例: xcalib)、X.org の _ICC_PROFILE にディスプレイプロファイルを設定したり (例: xicc)、あるいは一度に両方を設定するツールなどが存在します (例: dispwin, dispcalGUI-apply-profiles)。

xcalib

xcalib は軽量なモニターキャリブレーションローダーです。ICC モニタープロファイルをロードしてデスクトップアプリケーションから使うことができます。xcalibAUR は Arch User Repository (AUR) に入っています。

Xinitrc の例

X サーバーが起動したときに /usr/share/color/icc にある P221W-sRGB.icc をディスプレイ host:0 にロード:

#!/bin/bash

/usr/bin/xcalib -d :0 /usr/share/color/icc/P221W-sRGB.icc

JWM <StartupCommand> の例

JWM が起動したときに /usr/local/share/color/icc にある P221W-Native.icc プロファイルをディスプレイ host:0 にロード:

<StartupCommand>xcalib -d :0 /usr/local/share/color/icc/P221W-Native.icc</StartupCommand>

dispwin

dispwinargyllcms に含まれています。

Xinitrc の例

X サーバーが起動したときに /home/arch/.color/icc906w-6500K.icc プロファイルをディスプレイ 0 にロード:

#!/bin/bash

/usr/bin/dispwin -d0 /home/arch/.color/icc/906w-6500K.icc

JWM <StartupCommand> の例

JWM が起動したときに /usr/local/share/color/icc にある Argyll のキャリブレーションファイル 906w-7000K.cal をディスプレイ 1 にロード:

<StartupCommand>dispwin -d1 /usr/local/share/color/icc/906w-7000K.cal</StartupCommand>

ICC プロファイルを使用することができるアプリケーション

  • Xsane は ICC プロファイルを使って正しい色によるスキャンを行えます。
  • CUPSColord によって ICC プロファイルによる印刷の色補正ができます。
  • GIMP は ICC プロファイルを利用して画像編集で正確な色を使うことが可能です。ただし使用する ICC プロファイルは設定ダイアログで有効にする必要があります。
  • mpv は動画を再生するときに ICC プロファイルを利用することができます。コマンドライン引数: --vo=opengl:icc-profile=/path/to/profile.icc
  • Firefox はデフォルトで ICC プロファイルのタグが付いている画像を表示するときに ICC プロファイルを使用します。タグが付いていない画像を sRGB として色補正を適用するには gfx.color_management.mode を 1 に設定してください。
  • eog (Eye of GNOME) と eom (Eye of MATE) はシステムにインストールされた ICC プロファイルを自動的に使います。

参照