PHP | Imagick setSizeOffset() Function Last Updated : 28 Nov, 2019 Comments Improve Suggest changes 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 setSizeOffset() Function 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 setFont() Function The Imagick::setFont() function is an inbuilt function in PHP which is used to set the font. Syntax: bool Imagick::setFont( string $font ) Parameters: This function accepts single parameter $font which holds the name of font file. Return Value: This function returns TRUE on success. Extensions: GD e 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 PHP | Imagick setImageScene() Function The Imagick::setImageScene() function is an inbuilt function in PHP which is used to set the image scene. The value of scene contains an integer value. Syntax: bool Imagick::setImageScene( int $scene ) Parameters: This function accepts a single parameter $scene which holds the scene. Return Value: T 1 min read PHP | Imagick setImageDepth() Function The Imagick::setImageDepth() function is an inbuilt function in PHP which is used to set the depth of a particular image.Syntax:Â Â bool Imagick::setImageDepth( $depth ) Parameters: This function accepts a single parameter $depth which is an integer value and used to set the depth of image.Return Val 2 min read PHP | Imagick setImageProperty() Function The Imagick::setImageProperty() function is an inbuilt function in PHP which is used to set the image property. The main difference between image properties and image artifacts is that the properties are public whereas artifacts are private. Syntax: bool Imagick::setImageProperty( string $name, stri 1 min read Like