I am downloading this photo using function: file_get_contents(), and it seems to be corrupted. But original photo looks fine.
Original photo: original photo
Downloaded photo: Download photo
Code:
$current = file_get_contents($image);
$name = '/tmp/img/' . uniqid().".jpg";
file_put_contents($name, $current);
$tmpImages[] = $name;