downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Imagick::setImageVirtualPixelMethod> <Imagick::setImageType
Last updated: Fri, 06 Nov 2009

view this page in

Imagick::setImageUnits

(PECL imagick 2.0.0)

Imagick::setImageUnitsSets the image units of resolution

Description

bool Imagick::setImageUnits ( int $units )
Warning

This function is currently not documented; only its argument list is available.

Sets the image units of resolution.

Parameters

units

Return Values

Returns TRUE on success.



add a note add a note User Contributed Notes
Imagick::setImageUnits
salomonsanz at gmail dot com
08-Dec-2008 08:56
$source = 'miphoto.jpg';
$imagick = new Imagick($source);
$imagick -> setImageUnits(2);
//0=undefined, 1=pixelsperInch, 2=PixelsPerCentimeter
$info = $imagick -> identifyImage();
print_r($info);
//ouput
/*
Array
(
[units] => PixelsPerCentimeter
)

 
show source | credits | stats | sitemap | contact | advertising | mirror sites