I cannot figure out why using Exif within php, when an image is uploaded via choosing an "existing photo" on, in this case, an iPhone 6plus and Samsung Android, that I get full exif data which includes all of it including GPS data; but when I choose to "take a photo" and then upload it via same process, the Exif data is truncated and I no longer get to the GPS data which is toward the end. It stops at end of " ... ExifImageLength"]=>int(2448)".
Here is the script I am using (which is a part of a greater script to resize an uploaded image and store data from a form and Exif data of uploaded image. But I am only using the below code as a test and it still does it.
if (empty($_FILES['image']['name'])) {
echo 'Please choose an image!';
} else {
$temp = $_FILES['image']['tmp_name'];
$info = @exif_read_data($temp);
var_dump($info);
}
I have a local development server using XAMPP where everything is just fine with both "taken" or "chosen" images. But I am having this truncated issue on a GoDaddy Virtual Server Linux.