PHP | Imagick setSizeOffset() Function Last Updated : 28 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The Imagick::setSizeOffset() function is an inbuilt function in PHP which is used to set the size and offset of the Imagick object. Syntax: bool Imagick::setSizeOffset( int $columns, int $rows, int $offset ) Parameters: This function accepts three parameters as mentioned above and described below: $columns: It specifies the width in pixels. $rows: It specifies the height in pixels. $offset: It specifies the image offset. Return Value: This function returns TRUE on success. Exceptions: This function throws ImagickException on error. Below given programs illustrate the Imagick::setSizeOffset() function in PHP: Program 1: php <?php // Create a new imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Set the size offset $imagick->setSizeOffset(100, 400, 35); // Get the size offset $sizeOffset = $imagick->getSizeOffset(); echo $sizeOffset; ?> Output: 35 Program 2: php <?php // Create a new imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Set the size offset $imagick->setSizeOffset(300, 800, 21); // Get the size offset $sizeOffset = $imagick->getSizeOffset(); echo $sizeOffset; ?> Output: 21 Reference: https://www.php.net/manual/en/imagick.setsizeoffset.php Comment More infoAdvertise with us Next Article PHP | Imagick setSize() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Imagick setSize() Function The Imagick::setSize() function is an inbuilt function in PHP which is used to set the size associated with an imagick object. Syntax: bool Imagick::setSize( int $columns, int $rows ) Parameters: This function accepts two parameters as mentioned above and described below: $columns: It specifies the 1 min read PHP | Gmagick setsize() Function The Gmagick::setsize() function is an inbuilt function in PHP which is used to set the size associated with an gmagick object. Syntax: Gmagick Gmagick::setsize( int $columns, int $rows ) Parameters: This function accept two parameters as mentioned above and described below: $columns: It specifies th 1 min read PHP | Imagick setPointSize() Function The Imagick::setPointSize() function is an inbuilt function in PHP which is used to set the point size of imagick object. Syntax: bool Imagick::setPointSize( int $point_size ) Parameters: This function accepts a single parameter $point_size which holds the size of point. Return Value: This function 1 min read PHP | Imagick setImageDispose() Function The Imagick::setImageDispose() function is an inbuilt function in PHP which is used to sets the image disposal method. Syntax: bool Imagick::setImageDispose( $dispose ) Parameters: This function accepts single parameter $dispose which specifies the dispose Imagick object to be set. Return Value: Thi 2 min read PHP | Imagick setImageProfile() Function The Imagick::setImageProfile() function is an inbuilt function in PHP which is used to set the named profile to the Imagick object. Syntax: bool Imagick::setImageProfile( string $name, string $profile ) Parameters:This function accepts two parameters as mentioned above and described below: $name: It 1 min read PHP | Imagick resizeImage() Function The Imagick::resizeImage() function is an inbuilt function in PHP which is used to scale an image to the desired dimensions. Syntax: bool Imagick::resizeImage( int $columns, int $rows, int $filter, float $blur, bool $best_fit = false, bool $legacy = false ) Parameters: This function accepts six para 2 min read Like