$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
)
Imagick::setImageUnits
(PECL imagick 2.0.0)
Imagick::setImageUnits — Sets the image units of resolution
설명
bool Imagick::setImageUnits
( int $units
)
Warning
이 함수는 현재 문서화 되어있지 않습니다; 인수 목록만을 제공합니다.
Sets the image units of resolution.
인수
- units
-
반환값
성공시에 TRUE를 반환합니다.
Imagick::setImageUnits
salomonsanz at gmail dot com
08-Dec-2008 08:56
08-Dec-2008 08:56
