Functions page: 6

Get gravity
Gets the global gravity property for the Imagick object.
None


int getGravity ( void )

<?php 
$im 
= new Imagick($input);
$gravity $im->getGravity();
echo 
"Image gravity = $gravity<br/>";
 
?>
Get home URL
Returns the ImageMagick home URL.
Home URL = /usr/share/doc/ImageMagick-6.4.8//index.html


string getHomeURL ( void )

<?php 
$home 
$im->getHomeURL ();
echo 
"<br>Home URL = $home";
 
?>
Get HSL
Returns the normalized HSL color described by the ImagickPixel object, with each of the three values as floating point numbers between 0.0 and 1.0.
Hue: 0.204427083333
Saturation: 0.914285714286
Luminosity: 0.274509803922


getHSL ( void )

<?php 
$im 
= new Imagick($input);
$pixel $im->getImagePixelColor7822 );
$hsl $pixel->getHSL();
echo 
'<br>Hue: '.$hsl['hue'];
echo 
'<br>Saturation: '.$hsl['saturation'];
echo 
'<br>Luminosity: '.$hsl['luminosity'];
$im->destroy();
 
?>
Get image
Returns a new Imagick object with the current image sequence.
None

Get image alpha channel
Gets the image alpha channel value.
Image alpha channel = 1


int getImageAlphaChannel ( void )

<?php 
$im 
= new Imagick('rotateImage.png');
$alpha $im->getImageAlphaChannel ();
echo 
"Image alpha channel = $alpha<br/>";
 
?>


The returned value is one of the alpha channel constants.
Get image artifact
Gets an artifact associated with the image.
My version is to old



The difference between image properties and image artifacts is that properties are public and artifacts are private.
Get image background color
Returns the image background color.
None

Get image blob
Implements direct to memory image formats.
None



It returns the image sequence as a string. The format of the image determines the format of the returned blob (GIF, JPEG, PNG, etc.). To return a different image format, use Imagick::setImageFormat().
Get image blue primary
Returns the chromaticity blue primary point for the image.
None

Get image border color
Returns the image border color.
None

Get image channel depth
Gets the depth for a particular image channel.
None

Get image channel distortion
Compares one or more image channels of an image to a reconstructed image and returns the specified distortion metric.
None

Get image channel distortions
Compares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics
None

Get image channel extrema
Gets the extrema for one or more image channels.
None



Return value is an associative array with the keys "minima" and "maxima".
Get image channel kurtosis
Get the kurtosis and skewness of a specific channel
None