PHP Imagick transposeImage () function

PHP

Syntax:
bool Imagick::transposeImage (void) 
Parameters:This function takes no parameters.Return Value:This function returns True on success.Original Image:
The following program illustrates the Imagick::transposeImage()function in PHP:
Program:  
// require_once (` path / vendor / autoload.php `); 
// Create an imagick object $image = new Imagick ( ` https://media.engineerforengineer .org / wp-content / uploads / engineerforengineer-13.png ` );  
// Imagick function to transpose the image $image -> transposeImage(); header ( " Content-Type: image / jpg " );  
// Show image echo $image -> getImageBlob(); ?>
Output: Related Articles:
  • PHP | Imagick addNoiseImage() function
  • PHP | Imagick autoLevelImage() function
Link: http://php.net/manual/en/imagick.transposeimage.php



Get Solution for free from DataCamp guru