The Imagick::getSizeOffset() function is an inbuilt function in PHP which is used to get the size offset.
Syntax:
int Imagick::getSizeOffset( void )
Parameters: This function doesn’t accepts any parameter.
Return Value: This function returns an integer value containing the size offset.
Exceptions: This function throws ImagickException on error.
Below given programs illustrate the Imagick::getSizeOffset() function in PHP:
Program 1:
<?php // Create a new imagick object $imagick = new Imagick(
// Get the size offset $sizeOffset = $imagick ->getSizeOffset();
echo $sizeOffset ;
?> |
Output:
0
Program 2:
<?php // Create a new imagick object $imagick = new Imagick(
// Set the size offset $imagick ->setSizeOffset(100, 200, 25);
// Get the size offset $sizeOffset = $imagick ->getSizeOffset();
echo $sizeOffset ;
?> |
Output:
25
Reference: https://www.php.net/manual/en/imagick.getsizeoffset.php