The Gmagick::getimageunits() function is an inbuilt function in PHP that is used to get the units of resolution of a particular image.
int Gmagick::getimageunits( void )
Parameters: This function does not accept any parameter.
Return Value: This function returns an integer containing the resolution of image units.
Below programs illustrate the Gmagick::getimageunits() function in PHP:
Original Image 1:
Units = 2
Original Image 2:
Units = 0
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.