You are here

Hacking Full-size Camera Panoramas to Work in Facebook

PhotoJoseph's picture
July 16, 2016 - 6:00pm

UDPATE 2016-08-01: It turns out there is a very technical article on Facebook written by Eric Cheng, the Head of Immersive Imaging at Facebook describing this very thing. His article is quite technical (and also includes info on spherical panoramas) and while it does mostly mirror my findings, it's a long-winded way of describing what I ultimately explain how to do very simply. So if you're looking for a how-to, jump to the end of this article and follow the few simple steps!

Facebook's new panorama feature is pretty cool. If you haven't seen it, a pano uploaded to Facebook shows as a scene you can not only pan around with your finger, but actually tilt and turn your phone to explore. Neat!

I tried uploading a panoramic I'd created in Lightroom, but it only showed as an ultra-wide photo in Facebook, and not as an explorable panorama. The general consensus among my friends on Facebook was that only smartphone-shot panos would load in Facebook properly. To this I thought, “there must be a way around it!”. I figured what was needed was to trick Facebook into believing that a photo came from the iPhone, even if it didn't.

Here's the photo I'm working with… it was created with 52 photos shot on a Panasonic LUMIX GX85, adding up to 29,919 × 4,582 pixels, which comes to 137 Megapixels.

Original 52 photo panoramic shot on a LUMIX GX85 and stitched into a 29,919 × 4,582 pixel (137 megapixel) super-wide image!

Facebook could be sniffing the file any number of ways… EXIF data stating camera make or model, resolution, pixel height, and so-on. So I set out to “crack the code”, as it were!

I'm writing this post as I experiment… it's the easiest way to keep track. So it's potentially quite long… and really only relevant to the curious. The end result can be found at the end of the post!

Knowing if a panoramic will display properly in Facebook

First off let's look at how you know if a photo will work as a facebook pano or not. When you load a photo in the iPhone app, you'll first see a little globe icon on the thumbnail telling you that it's a pano:

In the Facebook app, if you see this globe icon on the thumbnail, it’s a panoramic photo — but this doesn’t mean it’ll load as a pano on the Facebook app!

Once loaded, you'll again see this globe icon on the wide image. If you don't see the globe at this point, that means that while originally Facebook saw it as a panoramic photo, now that it's loaded, it's not going to display as one. 

Once loaded, this icon must show up again for Facebook to display it as an explorable panoramic photo. If you don’t see this, all you’ll get is a super wide photo in your feed.

Now that we know how to tell if a photo will work or not, it's time to make a photo that won't work, work!

(Head's up… this is gonna take a while…)

Pages

Level:
Advanced
App:
Adobe Lightroom Classic (pre-CC) Adobe Photoshop Exif Editor Facebook PhotoSync
Platform:
macOS iOS Android Windows
Author:
PhotoJoseph

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

haha, I probably was tired! But thanks; fixed now.

@PhotoJoseph
— Have you signed up for the mailing list?

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.

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?

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?

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?

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…

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?

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?

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

 

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?

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? 

This is amazing! Do you think it can be done even for other types of pictures, like illustrations or paintings, and not photos?  

I don't see why not… pixels are pixels!

@PhotoJoseph
— Have you signed up for the mailing list?

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

Im hoping it can be done to any 360 camera available in the market. Comparability is important.

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

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

That is awesome! How did you change this?

@PhotoJoseph
— Have you signed up for the mailing list?

I use ACDSee, the details of conversion are optional.

https://drive.google.com/open?id=1sfau2vw3J_s30kZ9hUse6rI_hw1SpBcK

 

Gyula

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

thanks for figuring this out. I have found a free EXIF fixing website that did the job

https://www.thexifer.net/#exif-general

Thank you so much for sharing this! I’ve been frustrated and trying to find a way to make this work for a while!

You may login with either your assigned username or your e-mail address.
Passwords are case-sensitive - Forgot your password?