Dear alll We have plenty of images to be uploaded of 200 dpi is there a php code that will make the image from 200 doi to 72 dpi while uploading
First of all, make sure you actually understand what DPI means. Based on the way you phrased your question, it sounds like you don't. Anyway, to change the image resolution, use Imagick::setImageResolution(). To change the size, use Imagick::resampleImage(). Until you figure out what you are actually trying to achieve, it's hard to guess which one is correct for your application. Maybe both. Or maybe it's one of the 90% of cases where DPI doesn't actually matter and you can just ignore it.
You can use imagick_setdpi() to change the DPI of your images. You will have to upload the photos into your webserver and then write a PHP script which would loop through each of the images and set the DPI to your discretion.
Yes, he is correct. In reality, changing the DPI will not affect anything (such as file size or actual size).