I have this function to change Image DPI using Imagick extension:
<?php
// create an image copy
$image=new Imagick("D:/xampp/htdocs/extra/1270006212-Z3BFN9J.jpg");
$image->readImage("D:/xampp/htdocs/extra/1270006212-Z3BFN9J.jpg");
$image->setImageFileName("D:/xampp/htdocs/extra/ANC.jpg");
$image->writeImage();
?>
Whenever program reached in readImage function, browser stops running and give me error:
The connection was reset
The connection to the server was reset while the page was loading.
The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
I dont know what is the problem. I am using XAMPP 1.7.7, PHP 5.3.8, Imagick Version-2.3.0-rc3. Please help me in this.
Thanks