Hacking Full-size Camera Panoramas to Work in Facebook: Page 2 of 5
Hacking a Non-smartphone Panorama to Work in Facebook
I'll try to figure out what metadata Facebook is looking for. Again I'm writing this “real-time” as I try things out. After each change, I'll duplicate the file and continue to the next test. If I do succeed, I'll then try doing only that final step to see if that does the trick. Depending on how long this takes, I may or may not go back and figure out what really is and isn't needed :-)
1 Camera make & model
The easiest thing to change (if you have the tools) is the camera make and model. I am using an app called Exif Editor, available on the Mac App Store. There are many other tools out there as well.
The screenshot of Exif Editor above shows my Lightroom-created image, and you can see under the Camera section that I've changed the Make and Camera Model Name to “Apple” and “iPhone 6 Plus”, respectively. On the left of the screenshot you see thumbnails; the top one is an original iPhone panoramic, so I just copy and pasted the Make and Model info from that file into the other. Once you've updated the metadata, you click Process to save it.
Next step is of course to transfer the file to my iPhone. I'm using PhotoSync as I find it much more reliable than Airdrop.
RESULT: Unfortunately, this didn't work. You can see in the screenshot below that the globe icon is missing, meaning the file would load into Facebook as a regular ultra-wide shot. Figures it wouldn't be this easy!
2 Change the rest of the EXIF
May as well change the rest of the EXIF data before going any further, but I don't expect this to help. I went through and copy/pasted, cleared or changed the drop down on every single EXIF field to match the iPhone file, except the image width and height, which was actually empty on my panoramic, so I manually entered the correct data. Incidentally, the resolution (dpi) was the same on both files already (72). Also my Lightroom file doesn't have GPS data, and so I left that out as well. I figure there's no way that can be required. Finally there were additional created and modified dates in the Lightroom file that I couldn't alter in the EXIF editor.
RESULT: No joy, as expected.
3 Change the file name
Huh… should have thought of this sooner. If changing the name from my long name of “Tbilisi-20160628_183610-_1060064-©JosephLinaschke2016-Pano.jpg” to “IMG_9999.JPG” is all it takes, I'm gonna feel silly…
RESULT: Nope.
4 Change the file dimensions
The vertical resolution of iPhone panos is not a constant, so there isn't a precise height that would need to match. I checked the width and height of several iPhone panoramic photos and found little consistency. The raw data is below (sorted by height), and you'll see that the only repeating factor was a height of 2,936 pixels that showed up twice, and 3,084 pixels that showed up three times. Otherwise, height varied from 2,936 to 3,170… width varied from 8,310 to 13,632 (obviously determined by how widely you sweep the camera when shooting the pano)… the megapixel count ranged from 24.9 MP up to 42.0 MP… and the file size in MB ranged from 5.3 MB to 12.2 MB.
So the next step is to reduce the height to one of these. My original file is 29,919 × 4,582. If I reduce the height to 3,170 (the max height noted above), then the width on my file goes to 20,699 — still considerably wider the the widest original iPhone pano. I just shot an iPhone pano at its maximum width (panning the iPhone until it stopped recording the panoramic on its own) and that came to 13,630 pixels wide (similar to the widest one above). So if the height reduction doesn't fix it, I'll try a width reduction too.
RESULT: Nope — reducing the height wasn't the ticket.
Now to adjust the width to 13,632, making the height 2,088.
RESULT: No! Grrr…
5 Crop the image
Perhaps the image is too wide. I know there's a 100˚ minimum, but… no that can't be it, because you can do full 360˚ panos on phones that shoot those (the iPhone does not, at least not natively). Hm, well I'll try it anyway. I'm backup up to before I scaled the image, and will crop and scale to exactly 13,632 × 3,082 since that's a known working size from the iPhone.
RESULT: YES! This worked!
Comments
on July 20, 2016 - 5:55am
Thanks for getting to the bottom of this. I recently uploaded a LR Panorama to Facebook and wondered why it didn’t display as a Panorama. Now I have the answer.
Incidentally, I read all the way through. On page 4 of 5 I thought I found a typo (“(it won’t; I tired)”. But maybe you really were “tired” at that point.
Thomas
on July 23, 2016 - 9:46pm
haha, I probably was tired! But thanks; fixed now.
@PhotoJoseph
— Have you signed up for the mailing list?
on July 23, 2016 - 4:30am
Very thorough explanation. I did try your tip but seems cant to get it to panorama view in FB. I resize and image to 19205 x 3340 (5.75:1 ration right ?) . Edit the exif, add the Maker & model to Apple and iPhone 6 Plus. Is there anything else that i miss ? But what can is when I resize it to 6000x3000 (2:1 ratio). Maybe you can comment on this
Thanks.
on July 23, 2016 - 9:44pm
You missed a step… file must have a height of 3,082 or less. Scale your file down and it'll probably work!
@PhotoJoseph
— Have you signed up for the mailing list?
on January 27, 2017 - 11:56pm
Does this still work?
I have some panoramic photos taken in Antarctica that aren’t showing to their potential in Facebook. I’ve changed the metadata, changed the aspect ratio and height, uploaded to my iPhone 6. They show in photos under panoramas with the wide angle icon in the bottom right but they don’t all the tilting view that ones taken on the phone allow.
Anything I’m doing wrong?
on January 28, 2017 - 12:23am
I don't know… haven't tried in a while. I don't have a pano on my system to test with. Sounds like you hit all the major points, and if it's showing the icon in Facebook it sounds more like an app thing. Can you try another device? Or paste the link in here (be sure to make it a public post) and I'll try it.
@PhotoJoseph
— Have you signed up for the mailing list?
on January 29, 2017 - 9:56am
Here you go try this one, not adjusted yet but if you get it to work let me know and I can adjust the others
https://www.facebook.com/photo.php?fbid=10158191072375500&set=a.10158190…
on January 30, 2017 - 10:41pm
That's just showing up as a super wide photo. I'll try on myself and see what happens.
@PhotoJoseph
— Have you signed up for the mailing list?
on January 30, 2017 - 10:52pm
Yep, mine worked. You can see it here. This one was so wide that Facebook thinks it's a full 360˚ panorama, funny!
If you want to send me the photo you're uploading via Dropbox or something, paste the link here and I'll look at the source to see if I can figure out what's missing.
@PhotoJoseph
— Have you signed up for the mailing list?
on January 30, 2017 - 11:05pm
Heres one of the photo files via a dropbox link. Totally unedited, let me know how you get on.
https://www.dropbox.com/s/f41dhlylce8y3wn/Landscape%2002.JPG?dl=0
on January 30, 2017 - 11:17pm
Well, the EXIF data hasn't been edited. It still shows Sony ILCA-77M2
Your ratio should be fine; it's 8192 × 1856 which is a 4.41:1 aspect ratio.
Change the EXIF and it'll probably work. Go through the final checklist again; it explains how and what to change it to.
@PhotoJoseph
— Have you signed up for the mailing list?
on January 30, 2017 - 11:19pm
Yeah it’s unedited but when I change the EXIF file with apple and iPhone 6 Plus or iPhone 6 it doesn’t work.
if you edit it does it work?
on March 3, 2017 - 5:16pm
This is amazing! Do you think it can be done even for other types of pictures, like illustrations or paintings, and not photos?
on March 3, 2017 - 6:56pm
I don't see why not… pixels are pixels!
@PhotoJoseph
— Have you signed up for the mailing list?
on January 13, 2018 - 4:42am
The Exif Editor app linked in the article doesn’t appear to be in the Mac App Store anymore. But I found one called Photos Exif Editor for $0.99 that did the job.
Thomas
on April 11, 2018 - 7:45am
Im hoping it can be done to any 360 camera available in the market. Comparability is important.
on January 27, 2019 - 9:44am
Thanks for this work! I uploaded a pano photo from desktop (15525*2700 5,75:1), and works. Interesting, if I make a resized picture from it (6210*1080, 5,75:1), this isn’t recognized as pano.
And I have a problem. Quality my picture is very-very terrible on FB. Here are the exif data:
https://drive.google.com/open?id=197EKHn0lZ3LcJ8nJuQFL3GYfS60WsZMN
What is your opinion?
Gyula
on January 27, 2019 - 10:34am
I find the solution! The jpg format setting was Hoffman codes. I changed it progressive, and the quality of uploaded pano is excellent.
(The “JPG(old style)” became suspicious in exif data.)
Gyula
on January 27, 2019 - 1:42pm
That is awesome! How did you change this?
@PhotoJoseph
— Have you signed up for the mailing list?
on January 27, 2019 - 7:50pm
I use ACDSee, the details of conversion are optional.
https://drive.google.com/open?id=1sfau2vw3J_s30kZ9hUse6rI_hw1SpBcK
Gyula
on January 29, 2019 - 10:22pm
Joseph, I have another problem. My photo 360 degree exactly, but not allowed the hole rotation on FB.
I try change the aspect ratio, but did not succeed. I show this problem on the attached photo:
https://drive.google.com/open?id=1XCCsYZdAKES16FYZQsI5YqavV0QntTCC
What’s your opinion?
Gyula
on February 12, 2019 - 3:15am
thanks for figuring this out. I have found a free EXIF fixing website that did the job
https://www.thexifer.net/#exif-general
on January 3, 2021 - 6:14pm
Thank you so much for sharing this! I’ve been frustrated and trying to find a way to make this work for a while!