Imagemagick operators page: 13

Orient

Specify orientation of a digital camera image.

Orient example
<?php 
$cmd 
"$input -orient bottom-left"
exec("convert $cmd orient.jpg");
  
?>

Page

Set the size and location of an image on the larger virtual canvas.

More information to follow.

Page

Set the size and location of an image on the larger virtual canvas.

More information to follow.

Paint

Oil paint effect.

Paint example
<?php 
$cmd 
"$input -paint 2"
exec("convert $cmd paint.jpg");
 
?>

Path

Write images to this path on the disk.

More information to follow.

Pause

Pause between animation loops.

More information to follow.

Perceptible

set each pixel whose value is less than |epsilon| to -epsilon or epsilon (whichever is closer) otherwise the pixel value remains unchanged.

Ping

Efficiently determine image characteristics.

40

<?php 
$output 
exec("identify -ping -format \"%[fx:h*0.2]\" $input"); 
echo 
$output;
  
?>

( This can speed up the identify process. )

Pointsize

Set the font size to be used with draw, annotate etc.

Pointsize example
<?php 
$cmd 
"$input -font font/DRAGM.ttf -pointsize 55 "
"-fill white-gravity south -annotate 0,0 \"Draw text\" "
exec("convert $cmd pointsize.jpg");
  
?>

Polaroid

Polaroid effect.

Polaroid example
<?php 
$cmd 
" -caption \"A  Hibiscus\" $input -background black -polaroid 5"
exec("convert $cmd polaroid.png");
  
?>

( -polaroid = set the angle +polaroid = random angle between -15 and +15 degrees. - Background controls the shadow colour; save as png for transparent background. )

Poly

Combines multiple images according to a weighted sum of polynomials; one floating point weight (coefficient) and one floating point polynomial exponent (power) for each image expressed as comma separa

Posterize

Reduce the image to a limited number of color levels.

Posterize example
<?php 
$cmd 
"$input -posterize 3"
exec("convert $cmd posterize.jpg");
  
?>

Precision

Set the maximum number of significant digits to be printed.

Preview

Image preview type.

More information to follow.