THESE CODES ARE PROVIDED FOR AN EXAMPLE OF HOW TO USE IMAGEMAGICK WITH PHP. CARE SHOULD BE TAKEN WHEN ACCEPTING USER INPUT.
I TAKE NO RESPONSABILTY FOR ANY PROBLEMS THAT MAY OCCURE WHEN USING ANY OF THIS CODE.
IT IS UP TO YOU TO SECURE THE CODE AND VALIDATE USER INPUT.
Imagick Functions page: 19
Set image compose
Sets the image composite operator.
( Useful for specifying how to composite the image thumbnail when using the montageImage() method. )
Set image compression
Sets the image compression
( This does not actually compress the image but rather sets the compression type that is going to be used. )
Set image compression quality
Sets the image compression quality.
Set image delay
Sets the image delay.
Set image depth
Sets the image depth.
Set image dispose
Sets the image disposal method.
Set image extent
Sets the image size (i.e. columns & rows).
Set image filename
Sets the filename of a particular image in a sequence.
Set image format
Sets the format of a particular image in a sequence.
$im = new imagick( $image ); $im->setImageFormat( "png" ); $im->writeImage('setImageFormat.png'); $im->destroy();
Set image gamma
Sets the image gamma.
Set image gravity
Sets the gravity property for the current image.
My version is to old( This method can be used to set the gravity property for a single image sequence.
My Imagick version is to old. )
Set image green primary
Sets the image chromaticity green primary point.
$im = new Imagick ($input); $im->setImageGreenPrimary( 90, 31 ); $im->writeImage('setImageGreenPrimary.jpg'); $im->destroy();
Set image index
Set the iterator to the position in the image list specified with the index parameter.
( This method has been deprecated. See setIteratorIndex(). )
Set image interlace scheme
Sets the image compression.
$im = new Imagick ($input); $im->setImageInterlaceScheme( Imagick::INTERLACE_JPEG ); $im->writeImage('setImageInterlaceScheme.jpg'); $im->destroy();