⚠️ これは 非公式の翻訳サイトです。ImageMagick Studio LLC とは無関係です。正確な情報は 原文(https://imagemagick.org/conjure/) を参照してください。

conjure(MSL スクリプト)

使用例 • オプション一覧 • Magick Scripting Language (MSL)

conjure プログラムを使うと、Magick Scripting Language(MSL)で書いたスクリプトからカスタム画像処理タスクを実行できます。MSL は XML ベースで、属性を持つアクション文から成ります。アクションには、画像の読み込み・処理・属性取得・書き出しなどがあります。属性はアクションの挙動を変える key/value の組です。conjure コマンドの組み立て方についてはコマンドライン処理を参照するか、以下のコマンド使用例をご覧ください。

使用例

conjure コマンドの有用さと手軽さを示すため、いくつか例を挙げます。手始めに、簡単な conjure コマンドを示します:

magick conjure -dimensions 400x400 msl:incantation.msl

上記で使った MSL スクリプト incantation.msl は次のとおりです:

<?xml version="1.0" encoding="UTF-8"?>
<image>
  <read filename="image.gif" />
  <get width="base-width" height="base-height" />
  <resize geometry="%[dimensions]" />
  <get width="resize-width" height="resize-height" />
  <print output="Image sized from %[base-width]x%[base-height] to %[resize-width]x%[resize-height].\n" />
  <write filename="image.png" />
</image>

この例では、ある家族は休暇に家にいましたが、友人たちにはカリブ海の美しいビーチへ行ったことになっています:

<?xml version="1.0" encoding="UTF-8"?>
<group>
    <image id="family">
        <read filename="family.gif"/>
        <resize geometry="300x300"/>
    </image>
    <image id="palm-trees">
        <read filename="palm-trees.gif"/>
        <resize geometry="300x100"/>
    </image>
    <image>
        <read filename="beach.jpg"/>
        <composite image="family" geometry="+30+40"/>
        <composite image="palm-trees" geometry="+320+90"/>
    </image>
    <write filename="family-vacation.png"/>
</group>

ここでは、特定のフォントとポイントサイズのテキストの幅をピクセルで表示します。

<?xml version="1.0" encoding="UTF-8"?>
<image>
  <query-font-metrics text="ImageMagick" font="helvetica" pointsize="48" />
  <print output="Text width is %[msl:font-metrics.width] pixels.\n" />
</image>

query-font-metrics タグは次のプロパティをサポートします:

msl:font-metrics.pixels_per_em.x
msl:font-metrics.pixels_per_em.y
msl:font-metrics.ascent
msl:font-metrics.descent
msl:font-metrics.width
msl:font-metrics.height
msl:font-metrics.max_advance
msl:font-metrics.bounds.x1
msl:font-metrics.bounds.y1
msl:font-metrics.bounds.x2
msl:font-metrics.bounds.y2
msl:font-metrics.origin.x
msl:font-metrics.origin.y

MSL は ImageMagick の Perl API で説明されるほとんどのメソッドと属性をサポートします。

さらに、MSL は単一の indexes 要素を持つ swap 要素をサポートします。

オプション一覧

conjure コマンドは以下のオプションを認識します。各オプションをクリックすると、その動作の詳細を確認できます。

Option Description
-debug events 大量のデバッグ情報を表示する
-help プログラムのオプションを表示する
-log format デバッグ情報の書式
-monitor 進捗を監視する
-quiet すべての警告メッセージを抑制する
-regard-warnings 警告メッセージを重視する
-seed value 擬似乱数列の新しいシードを設定する
-verbose 画像の詳細情報を表示する
-version バージョン情報を表示する

Magick Scripting Language

conjure コマンドは以下の MSL 要素を認識します。取り消し線の付いた要素はまだサポートされていません。

Magick Scripting Language (MSL) メソッド パラメータ 説明
~~adaptiveblur~~ geometry="geometry", radius="double", sigma="double", bias="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 指定した radius と標準偏差(sigma)のガウス演算子で画像を適応的にぼかす。エッジ付近では効果を弱める。
~~adaptiveresize~~ geometry="geometry", width="integer", height="integer", filter="Point, Box, Triangle, Hermite, Hanning, Hamming, Blackman, Gaussian, Quadratic, Cubic, Catrom, Mitchell, Lanczos, Bessel, Sinc", support="double", blur="double" データ依存の三角形分割で画像を適応的にリサイズする。ぼかすには blur > 1、シャープには < 1 を指定。
~~adaptivesharpen~~ geometry="geometry", radius="double", sigma="double", bias="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 指定した radius と標準偏差(sigma)のガウス演算子で画像を適応的にシャープにする。エッジ付近では効果を強める。
~~adaptivethreshold~~ geometry="geometry", width="integer", height="integer", offset="integer" 局所適応しきい値処理。
~~addnoise~~ noise="Uniform, Gaussian, Multiplicative, Impulse, Laplacian, Poisson", attenuate="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像にノイズを加える
~~affinetransform~~ affine="array of float values", translate="float, float", scale= "float, float", rotate="float", skewX="float", skewY="float", interpolate="Average, Bicubic, Bilinear, Filter, Integer, Mesh, NearestNeighbor", background="color name" 画像をアフィン変換する
~~affinity~~ image="image-handle", method="None, FloydSteinberg, Riemersma" この画像から特定の色の集合を選ぶ
text="string", font="string", family="string", style="Normal, Italic, Oblique, Any", stretch="Normal, UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, SemiExpanded, Expanded, ExtraExpanded, UltraExpanded", weight="integer", pointsize="integer", density="geometry", stroke="color name", strokewidth="integer", fill="color name", undercolor="color name", kerning="float", geometry="geometry", gravity="NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast", antialias="true, false", x="integer", y="integer", affine="array of float values", translate="float, float", scale="float, float", rotate="float". skewX="float", skewY= "float", align="Left, Center, Right", encoding="UTF-8", interline-spacing="double", interword-spacing="double", direction="right-to-left, left-to-right" 画像にテキストで注釈を付ける。テキストを描画せずフォントメトリクスを得るには QueryFontMetrics を参照。
~~autogamma~~ channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像のガンマレベルを自動調整する
~~autolevel~~ channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像のカラーレベルを自動調整する
autoorient 表示に適した向き(左上基準)になるよう画像を調整する
~~blackthreshold~~ threshold="string", , channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" しきい値強度未満のすべてのピクセルを黒にする
~~blueshift~~ factor="double", 月明かりの夜のシーンを模倣する。factor 1.5 から始める。
geometry="geometry", radius="double", sigma="double", bias="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 指定した radius と標準偏差(sigma)のガウス演算子で画像ノイズと細部レベルを低減する。
geometry="geometry", width="integer", height="integer", bordercolor="color name", compose="Undefined, Add, Atop, Blend, Bumpmap, Clear, ColorBurn, ColorDodge, Colorize, CopyBlack, CopyBlue, CopyCMYK, Cyan, CopyGreen, Copy, CopyMagenta, CopyOpacity, CopyRed, RGB, CopyYellow, Darken, Dst, Difference, Displace, Dissolve, DstAtop, DstIn, DstOut, DstOver, Dst, Exclusion, HardLight, Hue, In, Lighten, Luminize, Minus, Modulate, Multiply, None, Out, Overlay, Over, Plus, ReplaceCompositeOp, Saturate, Screen, SoftLight, Src, SrcAtop, SrcIn, SrcOut, SrcOver, Src, Subtract, Threshold, Xor ", 画像を色付きの枠で囲む
geometry="geometry", radius="double", sigma="double" 木炭画を模倣する
geometry="geometry", width="integer", height="integer", x="integer", y="integer" 画像を切り取る(chop)
~~clamp~~ channel="Red, RGB, All, etc." 値が 0 未満のピクセルを 0 に、量子化範囲を超えるピクセルをその範囲(例: 65535)にする。それ以外はそのまま。
~~clip~~ id="name", inside=""true, false"", 8BIM プロファイルの名前付きパスに沿って適用する。
~~clipmask~~ mask="image-handle" 画像マスクで定義されたとおりに画像をクリップする
~~clut~~ image="image-handle", interpolate="Average, Bicubic, Bilinear, Filter, Integer, Mesh, NearestNeighbor", channel="Red, RGB, All, etc." 画像シーケンスにカラールックアップテーブルを適用する
~~coalesce~~ 画像シーケンスをマージする
~~color~~ color="color name" 画像全体をこの色に設定する。
~~colordecisionlist~~ filename="string", カラーディシジョンリストで色補正する。
fill="color name", blend="string" 塗りつぶし色で画像を着色する
~~colormatrix~~ matrix="array of float values" 画像に色補正を適用する。可変サイズの行列を使えるが、通常は RGBA に 5x5、CMYKA に 6x6 を使う。オフセットには 6x6 行列が必要(最終列に正規化値を入れる)。
string 画像にコメントを追加する
~~comparelayers~~ method="any, clear, overlay" シーケンス内で各画像を次の画像と比較し、見つかったピクセル差分の最小外接領域を返す。画像は同サイズでなくてよいが、すべての画像が coalesce されている(全画像が同サイズで平坦化キャンバス上にあり、特定フレームの見た目を正確に表す)のが望ましい。
image="image-handle", compose="Undefined, Add, Atop, Blend, Bumpmap, Clear, ColorBurn, ColorDodge, Colorize, CopyBlack, CopyBlue, CopyCMYK, Cyan, CopyGreen, Copy, CopyMagenta, CopyOpacity, CopyRed, RGB, CopyYellow, Darken, Dst, Difference, Displace, Dissolve, DstAtop, DstIn, DstOut, DstOver, Dst, Exclusion, HardLight, Hue, In, Lighten, Luminize, Minus, Modulate, Multiply, None, Out, Overlay, Over, Plus, ReplaceCompositeOp, Saturate, Screen, SoftLight, Src, SrcAtop, SrcIn, SrcOut, SrcOver, Src, Subtract, Threshold, Xor ", mask="image-handle", geometry="geometry", x="integer", y="integer", gravity="NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast", opacity="integer", tile="True, False", rotate="double", color="color name", blend="geometry", interpolate="undefined, average, bicubic, bilinear, filter, integer, mesh, nearest-neighbor, spline" ある画像を別の画像に合成する。rotate パラメータは tile パラメータと併用する。
sharpen="True, False" 画像のコントラストを強める/弱める
~~contraststretch~~ levels="string", 'black-point'="double", 'white-point'="double", channel="Red, RGB, All, etc." 輝度値の範囲を「引き伸ばし」て画像のコントラストを改善する
~~convolve~~ coefficients="array of float values", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow", bias="double" 画像に畳み込みカーネルを適用する。カーネルの「次数(order)」に対し order*order 個の浮動小数点値を与える(例: 3x3 は 9 値)。
geometry="geometry", width="integer", height="integer", x="integer", y="integer", fuzz="double", gravity="NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast" 画像を切り抜く
~~cyclecolormap~~ amount="integer" 画像のカラーマップを amount だけずらす
~~decipher~~ passphrase="string" 暗号化ピクセルを平文ピクセルに変換する
~~deconstruct~~ 画像シーケンスを構成要素に分解する
~~deskew~~ geometry="string",threshold="double" 画像の傾きを補正する
画像内のスペックル(斑点ノイズ)を低減する
~~difference~~ image="image-handle" 2 つの画像間の差分指標を計算する
~~distort~~ points="array of float values", method="Affine, AffineProjection, Bilinear, Perspective, Resize, ScaleRotateTranslate", virtual-pixel="Background Black Constant Dither Edge Gray Mirror Random Tile Transparent White", best-fit="True, False" 画像を歪ませる
primitive="point, line, rectangle, arc, ellipse, circle, path, polyline, polygon, bezier, color, matte, text, @"filename"", points="string" , method=""Point, Replace, Floodfill, FillToBorder, Reset"", stroke="color name", fill="color name", font="string", pointsize="integer", strokewidth="float", antialias="true, false", bordercolor="color name", x="float", y="float", dash-offset="float", dash-pattern="array of float values", affine="array of float values", translate="float, float", scale="float, float", rotate="float", skewX="float", skewY="float", interpolate="undefined, average, bicubic, bilinear, mesh, nearest-neighbor, spline", kerning="float", text="string", vector-graphics="string", interline-spacing="double", interword-spacing="double", direction="right-to-left, left-to-right" 1 つ以上のグラフィックプリミティブで画像に注釈を付ける。
~~encipher~~ passphrase="string" 平文ピクセルを暗号化ピクセルに変換する
radius="double" 指定した radius の畳み込みフィルタで画像内のエッジを強調する。
geometry="geometry", radius="double", sigma="double" 指定した radius と標準偏差(sigma)の畳み込みフィルタで画像をエンボス加工する。
デジタルフィルタを適用してノイズの多い画像を補正する
channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像にヒストグラム平坦化を行う
~~extent~~ geometry="geometry", width="integer", height="integer", x="integer", y="integer", fuzz="double", background="color name", gravity="NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast" 画像サイズを設定する
~~evaluate~~ value="double", operator=""Add, And, Divide, LeftShift, Max, Min, Multiply, Or, Rightshift, Subtract, Xor"", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像に算術・関係・論理式を適用する
~~filter~~ kernel="string", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow", bias="double" 画像に畳み込みカーネルを適用する。
画像の走査線を垂直方向に反転する
画像の走査線を水平方向に反転する
~~floodfillpaint~~ geometry="geometry", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow", x="integer", y="integer" , fill="color name", bordercolor="color name", fuzz="double", invert="True, False" 対象ピクセルの色に一致し隣接する任意のピクセルの色値を変える。枠色を指定すると、その色でない任意の隣接ピクセルの色値が変わる。
~~forwardfouriertransform~~ magnitude="True, False" 順方向の離散フーリエ変換(DFT)を実装する
geometry="geometry", width="integer", height="integer", inner="integer", outer="integer", fill="color name", compose="Undefined, Add, Atop, Blend, Bumpmap, Clear, ColorBurn, ColorDodge, Colorize, CopyBlack, CopyBlue, CopyCMYK, Cyan, CopyGreen, Copy, CopyMagenta, CopyOpacity, CopyRed, RGB, CopyYellow, Darken, Dst, Difference, Displace, Dissolve, DstAtop, DstIn, DstOut, DstOver, Dst, Exclusion, HardLight, Hue, In, Lighten, Luminize, Minus, Modulate, Multiply, None, Out, Overlay, Over, Plus, ReplaceCompositeOp, Saturate, Screen, SoftLight, Src, SrcAtop, SrcIn, SrcOut, SrcOver, Src, Subtract, Threshold, Xor ", 画像を装飾的な枠で囲む
~~function~~ parameters="array of float values", function="Sin", virtual-pixel="Background Black Constant Dither Edge Gray Mirror Random Tile Transparent White" 画像に関数を適用する
gamma="string", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像をガンマ補正する
~~gaussianblur~~ geometry="geometry", radius="double", sigma="double", bias="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 指定した radius と標準偏差(sigma)のガウス演算子で画像ノイズと細部レベルを低減する。
~~getpixel~~ geometry="geometry", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow", normalize="true, false", x="integer", y="integer" 単一ピクセルを取得する。既定では正規化ピクセル値が返る。
~~getpixels~~ geometry="geometry", width="integer", height="integer", x="integer", y="integer", map="string", normalize="true, false" マップ(例: "RGB"、"RGBA" など)で定義された画像ピクセルを取得する。既定では非正規化ピクセル値が返る。
~~grayscale~~ channel="Average, Brightness, Lightness, Rec601Luma, Rec601Luminance, Rec709Luma, Rec709Luminance, RMS" 画像をグレースケールに変換する
~~haldclut~~ image="image-handle", channel="Red, RGB, All, etc." 画像シーケンスに Hald カラールックアップテーブルを適用する
~~identify~~ file="file", features="distance", unique="True, False" 画像の属性を識別する
amount="double", interpolate="undefined, average, bicubic, bilinear, mesh, nearest-neighbor, spline" 中心に向かって画像ピクセルを内破させる
~~inversediscretefouriertransform~~ magnitude="True, False" 逆離散フーリエ変換(DFT)を実装する
string 画像にラベルを割り当てる
~~layers~~ method="coalesce, compare-any, compare-clear, compare-over, composite, dispose, flatten, merge, mosaic, optimize, optimize-image, optimize-plus, optimize-trans, remove-dups, remove-zero", compose="Undefined, Add, Atop, Blend, Bumpmap, Clear, ColorBurn, ColorDodge, Colorize, CopyBlack, CopyBlue, CopyCMYK, Cyan, CopyGreen, Copy, CopyMagenta, CopyOpacity, CopyRed, RGB, CopyYellow, Darken, Dst, Difference, Displace, Dissolve, DstAtop, DstIn, DstOut, DstOver, Dst, Exclusion, HardLight, Hue, In, Lighten, LinearLight, Luminize, Minus, Modulate, Multiply, None, Out, Overlay, Over, Plus, ReplaceCompositeOp, Saturate, Screen, SoftLight, Src, SrcAtop, SrcIn, SrcOut, SrcOver, Src, Subtract, Threshold, Xor ", dither="true, false" シーケンス内の前の画像の GIF 破棄形と各画像を比較する。これにより、アニメーションの結果を保ちつつ各フレームを置き換える最小の切り抜き画像を選ぼうとする。
levels="string", 'black-point'="double", 'gamma'="double", 'white-point'="double", channel="Red, RGB, All, etc." 画像のコントラストレベルを調整する
~~levelcolors~~ invert=>"True, False", 'black-point'="string", 'white-point'="string", channel="Red, RGB, All, etc." 指定した色で画像をレベル調整する
~~linearstretch~~ levels="string", 'black-point'="double", 'white-point'="double" 飽和を伴う線形引き伸ばし
~~liquidresize~~ geometry="geometry", width="integer", height="integer", delta-x="double", rigidity="double" シームカービングで画像をリスケールする。
ピクセルアートスケーリングで画像を 2 倍にする
~~mask~~ mask="image-handle" マスクで定義されたとおりに画像ピクセルを合成する
~~mattefloodfill~~ geometry="geometry", x="integer", y="integer" , matte="integer", bordercolor="color name", fuzz="double", invert="True, False" 対象ピクセルの色に一致し隣接する任意のピクセルのマット値を変える。枠色を指定すると、その色でない任意の隣接ピクセルのマット値が変わる。
~~medianfilter~~ geometry="geometry", width="integer", height="integer", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 各ピクセルを近傍の中央値強度のピクセルで置き換える。
画像のサイズを半分にする
~~mode~~ geometry="geometry", width="integer", height="integer", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 各ピクセルを近傍の「最頻色」にする。
factor="geometry", brightness="double", saturation="double", hue="double", lightness="double", whiteness="double", blackness="double" 指定したパーセンテージで画像の明るさ・彩度・色相を変化させる
~~morphology~~ kernel="string", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow", iterations="integer" 画像にモルフォロジー手法を適用する。
~~motionblur~~ geometry="geometry", radius="double", sigma="double", angle="double", bias="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 動きの効果を模倣するため、指定した radius・標準偏差(sigma)・角度のガウス演算子で画像ノイズと細部レベルを低減する
gray="True, False", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 各ピクセルを補色に置き換える(白は黒に、黄は青に、など)
channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像を色値の全範囲に広げる
~~oilpaint~~ radius="integer" 油絵を模倣する
color="color name", fill="color name", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow", invert="True, False" 画像内のこの色を塗りつぶし色に変える
~~ordereddither~~ threshold="threshold, checks, o2x2, o3x3, o4x4, o8x8, h4x4a, h6x6a, h8x8a, h4x4o, h6x6o, h8x8o, h16x16o, hlines6x4", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像を順序ディザリングする
~~perceptible~~ epsilon="double", channel="Red, RGB, All, etc." set each pixel whose value is less than
~~polaroid~~ caption="string", angle="double", pointsize="double", font="string", stroke= "color name", strokewidth="integer", fill="color name", gravity="NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast", background="color name" ポラロイド写真を模倣する。
~~posterize~~ levels="integer", dither="True, False" 画像を限られた色レベル数に減らす
name="string", profile="blob", rendering-intent="Undefined, Saturation, Perceptual, Absolute, Relative", black-point-compensation="True, False" ICC または IPTC 画像プロファイルを追加・削除する。name は正式名(例: ICC)またはファイル名。プロファイルを削除するには profile を '' に設定する
colors="integer", colorspace="RGB, Gray, Transparent, OHTA, XYZ, YCbCr, YIQ, YPbPr, YUV, CMYK, sRGB, HSL, HSB", treedepth= "integer", dither="True, False", dither-method="Riemersma, Floyd-Steinberg", measure_error="True, False", global_colormap="True, False", transparent-color="color" 画像で使う色数の指定
~~radialblur~~ geometry="geometry", angle="double", bias="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像を放射状にぼかす。
geometry="geometry", width="integer", height="integer", x="integer", y="integer", raise="True, False" 画像の縁を明暗化して立体効果を作る
~~reducenoise~~ geometry="geometry", width="integer", height="integer", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" ノイズピーク除去フィルタで画像のノイズを低減する
~~remap~~ image="image-handle", dither="true, false", dither-method="Riemersma, Floyd-Steinberg" 画像の色を参照画像から最も近い色で置き換える。
density="geometry", x="double", y="double", filter="Point, Box, Triangle, Hermite, Hanning, Hamming, Blackman, Gaussian, Quadratic, Cubic, Catrom, Mitchell, Lanczos, Bessel, Sinc", support="double" 画像を希望の解像度に再サンプリングする。ぼかすには blur > 1、シャープには < 1 を指定。
geometry="geometry", width="integer", height="integer", filter="Point, Box, Triangle, Hermite, Hanning, Hamming, Blackman, Gaussian, Quadratic, Cubic, Catrom, Mitchell, Lanczos, Bessel, Sinc", support="double", blur="double" 画像を希望のサイズに拡大縮小する。ぼかすには blur > 1、シャープには < 1 を指定。
geometry="geometry", x="integer", y="integer" 画像を垂直または水平にロールする
degrees="double", background="color name" 画像を回転する
geometry="geometry", width="integer", height="integer" ピクセルサンプリングで画像を拡大縮小する。
geometry="geometry", width="integer", height="integer" 画像を希望のサイズに拡大縮小する
colorspace="RGB, Gray, Transparent, OHTA, XYZ, YCbCr, YCC, YIQ, YPbPr, YUV, CMYK", verbose="True, False", cluster-threshold="double", smoothing-threshold="double" 色成分のヒストグラムを解析し、均質な単位を識別して画像をセグメント化する
~~selectiveblur~~ geometry="geometry", radius="double", sigma="double", threshold="double", bias="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" コントラストしきい値内のピクセルを選択的にぼかす。
~~separate~~ channel="Red, RGB, All, etc." 画像からチャンネルを分離してグレースケール画像にする
geometry="geometry", azimuth="double", elevation="double", gray="true, false" 遠方光源を使って画像に陰影を付ける
~~setpixel~~ geometry="geometry", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow", color="array of float values", x="integer", y="integer", color="array of float values" 単一ピクセルを設定する。既定では正規化ピクセル値が期待される。
geometry="geometry", opacity="double", sigma="double", x="integer", y="integer" 画像の影を模倣する
geometry="geometry", radius="double", sigma="double", bias="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 指定した radius と標準偏差(sigma)のガウス演算子で画像をシャープにする。
geometry="geometry", width="integer", height="integer" 画像の縁からピクセルを削る
geometry="geometry", x="double", y="double" fill="color name" 正または負のせん断角で画像を X 軸または Y 軸に沿ってせん断する
~~sigmoidalcontrast~~ geometry="string", 'contrast'="double", 'mid-point'="double" channel="Red, RGB, All, etc.", sharpen="True, False" シグモイド非線形コントラスト制御。シグモイド伝達関数を使い、ハイライトや影を飽和させずに画像のコントラストを上げる。Contrast はコントラストをどれだけ上げるか(0 はなし、3 は典型、20 は大きい)、mid-point は結果画像で中間調がどこに来るか(0 は白、50% は中間グレー、100% は黒)を示す。コントラストを下げるには sharpen を False にする。
画像ピクセルストリームの SHA-256 メッセージダイジェストを生成する
~~sketch~~ geometry="geometry", radius="double", sigma="double", angle="double" 指定した radius・標準偏差(sigma)・角度のガウス演算子で画像をスケッチする
geometry="string", threshold="double", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" しきい値レベルを超える全ピクセルを反転する
~~sparsecolor~~ points="array of float values", method="Barycentric, Bilinear, Shepards, Voronoi", virtual-pixel="Background Black Constant Dither Edge Gray Mirror Random Tile Transparent White" 与えた点の周りで画像の色を補間する
~~splice~~ geometry="geometry", width="integer", height="integer", x="integer", y="integer", fuzz="double", background="color name", gravity="NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast" 画像に差し込む(splice)
radius="double", interpolate="undefined, average, bicubic, bilinear, mesh, nearest-neighbor, spline" 画像ピクセルをランダムな量だけ変位させる
~~statistic~~ geometry="geometry", width="integer", height="integer", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow", type="Median, Mode, Mean, Maximum, Minimum, ReduceNoise" 各ピクセルを近傍の対応する統計値で置き換える。
image="image-handle", offset="integer" 画像内に電子透かしを隠す
image="image-handle", x="integer", y="integer" 2 つの画像を合成し、ステレオペアの左右画像を合成した単一画像を生成する
画像からすべてのプロファイルとコメントを除去する。
degrees="double", interpolate="undefined, average, bicubic, bilinear, mesh, nearest-neighbor, spline" 中心の周りで画像ピクセルを渦巻かせる
~~texture~~ texture="image-handle" 画像背景にタイル状に敷くテクスチャ名
~~thumbnail~~ geometry="geometry", width="integer", height="integer" 画像のサイズを指定した寸法に変え、関連するプロファイルを除去する。
threshold="string", channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" 画像をしきい値処理する
~~tint~~ fill="color name", blend="string" 塗りつぶし色で画像を色づけする。
color="color name", invert="True, False" 画像内のこの色を透明にする
~~transpose~~ 画像を垂直反転して 90 度回転する
~~transverse~~ 画像を水平反転して 270 度回転する
画像から背景色の縁を除去する
~~unsharpmask~~ geometry="geometry", radius="double", sigma="double", gain="double", threshold="double" アンシャープマスクアルゴリズムで画像をシャープにする。
~~vignette~~ geometry="geometry", radius="double", sigma="double", x="integer", y="integer", background="color name" 画像の縁をビネット風にオフセットする
~~wave~~ geometry="geometry", amplitude="double", wavelength="double", interpolate="undefined, average, bicubic, bilinear, mesh, nearest-neighbor, spline" サイン波に沿って画像を変形する
~~whitethreshold~~ threshold="string", , channel="All, Default, Alpha, Black, Blue, CMYK, Cyan, Gray, Green, Index, Magenta, Opacity, Red, RGB, Yellow" しきい値強度を超えるすべてのピクセルを白にする