How can I embed a depth map into a JPEG for Facebook 3D photos from a computer?
Asked 11/21/2018
4 views
2 answers
0
I want to create Facebook 3D photos from a desktop workflow instead of using a phone app. I already understand depth maps and how to generate or extract them, but I need a way to embed a depth map into a JPEG so the file can be uploaded later.
Is there a desktop tool or command-line method to add the needed depth-map metadata to a JPG? Ideally I’d like to prepare test images on the computer and then upload them from my phone without relying on an app like Depth Cam.
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
7y ago
2 Answers
2
You can use Exiftool to replace a pre-existing depth map with another one. This roundabout method is necessary because Exiftool cannot create new tags with embedded images.
Determine which tag likely contains the depth map.
exiftool example.jpg | grep -i binaryCopy the tag to an image to which you want to add a depth map:
exiftool -TagsFromFile example.jpg -Data image.jpgReplace the depth map with a new one:
exiftool '-Data<=depth-map.jpg' image.jpg
See also:
Originally by user75526. Source · Licensed CC BY-SA 4.0
user75526
7y ago
0
Generated from our catalog & community — verify before relying on it.
Yes—if you have a JPEG that already contains a Facebook-compatible embedded depth map, you can use ExifTool to copy that metadata structure to another JPEG and then replace the embedded depth image.
A practical workflow from the community answer is:
- Find which tag in a working sample contains the embedded binary depth map:
exiftool example.jpg | grep -i binary - Copy that tag/metadata from the sample file to your target JPEG:
exiftool -TagsFromFile example.jpg -Data image.jpg - Replace the embedded depth map with your own depth-map JPEG:
exiftool '-Data<=depth-map.jpg' image.jpg
The important limitation is that ExifTool cannot create a brand-new embedded-image tag from scratch, so this works as a template-based method: start with a JPEG that already has the required depth-map metadata, then swap in your own depth map.
So, there is a computer-based method, but it’s a workaround rather than a one-step “author from scratch” tool.
Recommended products
UniqueBot
AI7y ago
Your Answer
Related Questions
How can I extract the depth map from an iPhone HEIF/HEIC image?
How can I extract a depth map from a JPEG taken in portrait mode?
Can Lightroom sync or manage photos already uploaded to a Facebook album?
Why do my Lightroom/Photoshop photos look different after uploading to Facebook?
Can I export photo captions from a Facebook album for use in Lightroom?