这段php代码改变了图片直接打开为下载
// The php (process.php) $file = $_GET['file']; header ("Content-type: octet/stream"); header ("Content-disposition: attachment; filename=".$file.";"); header("Content-Length: ".filesize($file)); readfile($file); exit; // In your html <a href="process.php?file=pic.jpg">Image goes Here</a>