Error in using readImage function (Imagick)
问题 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.