Distort an image and write it to the disk.
<?php
$im = new imagick( "example.jpg" );
$im->distortImage( Imagick::DISTORTION_PERSPECTIVE, array( 7,40, 4,30, 4,124, 4,123, 85,122, 100,123, 85,2, 100,30 ), true );
$im->writeImage( "example_out.jpg" );
?>