I'm building a Web application that will handle image files that will ultimately be printed, large format.
As part of this, I need to get (i.e. read) and set (i.e. change) the DPI of an image file.
Is this possible through PHP GD or PHP Imagick?
Thanks,
BK
Edit:
The DPI of a image can be accessed through iMagick's getImageResolution
method:
public function getDPI() {
$imgDPI = $this->image->getImageResolution();
return $imgDPI;
}
and the DPI of an image can be set through iMagick's setImageResolution
method:
public function setDPI($DPIX, $DPIY) {
$this->image->setImageResolution($DPIX,$DPIY);
}