I\'ve built a website which allows image uploading and once an image is uploaded , some specific information about the photo is displayed. Uploading pictures from computers
I am currently using iOS 8.1.1 and I also noticed this unlovely behavior of cutting certain Exif data from photos when uploading via mobile safari. I noticed the same behavior with a fresh installation of:
So my assumption is that behavior is not browser related, but its the camera app when transferring the photo to another application (not authorized by Apple).
Does anyone found an official statement from Apple for this Exif data cutting?
Been testing on iphone 6 for mobile image upload. To cater for the orientation for iPhone. You must be ready for the two type of image upload. The front camera and the back camera. To get the orientation from the front *selfie camera you must do the following. First store the image to your destination folder on the server.
$image = imagecreatefromjpeg($source_url);
imagejpeg($image, $destination_url, $quality);
From there onward you read the EXIF from the created destination file
$exif = exif_read_data($destination_url, 0, true);
if(!empty($exif['IFD0']['Orientation'])) {
//rotate accordingly
}
This will give you orientation number to rotate it accordingly. As for the back camera you are able to read directly from the source URL. The file posted from the upload form. without having to store 1st then read the EXIF
$exif = exif_read_data($source_url);
if(!empty($exif['Orientation'])) {
//rotate accordingly
}
I think this has been resolved now with the newer version (I don't exactly which one) of iOS. I can't be 100% sure about this.
I've just noticed recently that this has started working on a few different iPhones I've tested that have iOS 9.2 installed.
So if all of you could whip out you iPhones and start testing it would be great to see if this has been resolved.
I got the same issue. Below is work around
To resolve the issue... go into settings, Camera, Formats. Select "Most Compatible".
https://www.flickr.com/help/forum/en-us/72157700799502582/
I just tried another browser, Opera Mini, and it worked! Got all my exif data!
if the pic is emailed from iphone and saved to a mac, the exif data is preserved. If its copied via IMage Capture to the mac, exif data is preserved. Only if uploaded to a service from the camera role is exif data not sent with the upload.