Imagemagick operators page: 4

Clut

Replace the channel values in the first image using each corresponding channel in the second image as a color lookup table.

Clut example
<?php 
$cmd 
"$input2 $input3 -clut";  
exec("convert $cmd clut.jpg");
  
?>

( Replace the channel values in the first image using each corresponding channel in the second image as a color lookup table. )

Coalesce

Fully define the look of each frame of an GIF animation sequence, to form a 'film strip' animation.

More information to follow.


( See the Layers page. )

Color matrix

Apply a color correction to the image

Color matrix example
<?php 
$cmd 
"$input -color-matrix ".
"  \" 1.5 0.0 0.0 0.0, 0.0, -0.157 ".
"    0.0 1.5 0.0 0.0, 0.0, -0.157 ".
"   0.0 0.0 1.5 0.0, 0.0, -0.157 ".
"   0.0 0.0 0.0 1.0, 0.0, 0.0 ".
"   0.0 0.0 0.0 0.0, 1.0, 0.0 ".
"   0.0 0.0 0.0 0.0, 0.0, 1.0\"";   
exec("convert $cmd color-matrix.jpg"); ?>

Colorize

Colorize the image by an amount specified by value using the color specified by the most recent -fill setting.

Colorize example
<?php 
$cmd 
"$input -fill Blue -colorize 30 "
exec("convert $cmd colorize.jpg");
      
?>

( Colorize the image by an amount specified by value using the color specified by the most recent -fill setting. )

Colormap

Define the colormap type.

Not used with php.


( X server required. )

Colors

Set the preferred number of colors in the image.

Colors example
<?php 
$cmd 
"$input -colors 10 "
exec("convert $cmd colors.jpg");
     
?>

Colorspace

Set the image colorspace.

Colorspace example
<?php 
$cmd 
"$input -colorspace gray"
exec("convert $cmd colorspace.jpg");
 
?>

Combine

Combine one or more images into a single image.

Combine example
<?php 
$cmd 
" separate-0.png separate-1.png separate-2.png"
" -channel RGB -combine "
exec ("convert $cmd combine.png");
 
?>

Comment

Embed a comment in an image.

The comment is in the IPTC or EXIF data

<?php 
$cmd 
"$input -comment \"Comment imbeded in image\" "
exec("convert $cmd comment.jpg");
  
?>

Compare

Mathematically and visually annotate the difference between an image and its reconstruction

Complex

Perform complex mathematics on an image sequence

Compose

Set the type of image composition.

More information to follow.


( See the compose page. )

Composite

Perform alpha composition on the current image sequence.

Composite example
<?php 
$cmd 
"$input $input1 -gravity center".
" -composite "
exec("convert $cmd composite.jpg");
 
?>

( You can use the same methods of overlaying as compose.
Note the images are in the oposite order to compose. )

Compress

Use pixel compression specified by type when writing the image.

Compress example
<?php 
$cmd 
"$input -compress JPEG "
exec("convert $cmd compress.jpg");
   
?>