You should use the PHP Imagick constants to correctly set the Image Units, as described here:
http://www.php.net/manual/en/imagick.constants.php
RESOLUTION constants
imagick::RESOLUTION_UNDEFINED (integer)
imagick::RESOLUTION_PIXELSPERINCH (integer)
imagick::RESOLUTION_PIXELSPERCENTIMETER (integer)