PHP | Imagick getImageInterlaceScheme() Function Last Updated : 20 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The Imagick::getImageInterlaceScheme() function is an inbuilt function in PHP which is used to get the image interlace scheme. Syntax: int Imagick::getImageInterlaceScheme( void ) Parameters: This function does not accept any parameter. Return Value: This function returns an integer value containing the interlace scheme which corresponds to one of INTERLACE constants. List of INTERLACE constants are given below: imagick::INTERLACE_UNDEFINED (0) imagick::INTERLACE_NO (1) imagick::INTERLACE_LINE (2) imagick::INTERLACE_PLANE (3) imagick::INTERLACE_PARTITION (4) imagick::INTERLACE_GIF (5) imagick::INTERLACE_JPEG (6) imagick::INTERLACE_PNG (7) Exceptions: This function throws ImagickException on error. Below given program illustrates the Imagick::getImageInterlaceScheme() 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'); // Get the Interlace Scheme $interlaceScheme = $imagick->getImageInterlaceScheme(); echo $interlaceScheme; ?> Output: 1 Program 2: php <?php // Create a new imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Set the Interlace Scheme $imagick->setImageInterlaceScheme(imagick::INTERLACE_PNG); // Get the Interlace Scheme $interlaceScheme = $imagick->getImageInterlaceScheme(); echo $interlaceScheme; ?> Output: 7 Reference: https://www.php.net/manual/en/imagick.getimageinterlacescheme.php Comment More infoAdvertise with us Next Article PHP | Imagick getImageInterlaceScheme() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Gmagick getimageinterlacescheme() Function The Gmagick::getimageinterlacescheme() function is an inbuilt function in PHP which is used to get the interlace scheme of the image. Syntax: int Gmagick::getimageinterlacescheme( void ) Parameters: This function doesnât accept any parameters. Return Value: This function returns an integer value cor 1 min read PHP | Imagick getInterlaceScheme() Function The Imagick::getInterlaceScheme() function is an inbuilt function in PHP which is used to get the object interlace scheme. Syntax: int Imagick::getInterlaceScheme( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the interlace scheme. Below programs 1 min read PHP | Imagick getImageInterpolateMethod() Function The Imagick::getImageInterpolateMethod() function is an inbuilt function in PHP which is used to get the interpolation method for the specified image. Syntax: int Imagick::getImageInterpolateMethod( void ) Parameters: This function doesn't accepts any parameter. Return Value: This function returns a 1 min read PHP | Imagick getImageInterations() Function The Imagick::getImageIterations() function is an inbuilt function in PHP which is used to get the image iterations. The iteration means how many times the frames should repeat themselves. Syntax: int Imagick::getImageIterations( void ) Parameters: This function doesn't accepts any parameter. Return 1 min read PHP | Imagick getImageScene() Function The Imagick::getImageScene() function is an inbuilt function in PHP which is used to get the image scene of an Imagick object. Syntax: int Imagick::getImageScene( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the image scene. Below programs illus 1 min read Like