I want to make Facebook 3d photos directly from the computer. I understand how depth maps work and also how to extract them, but what about embedding them so you can make your own custom photos and just upload them without the need of an app?

I saw this example over PetaPixel:


In this minitutorial the guy joins the depth map with the jpg using an app called 'depth cam' ($3.99). Is there a tool so I can just get my jpg ready from the computer? I just want to upload it directly from the phone and forget about 'depth cam' , so I can work faster doing tests of which d-map nailed it.

  • 2
    I'm unclear what you're asking about. You are asking about a tool ("Is there a tool..."), but you want to do it "without the need of an app"? Sounds contradictory to me. Also, are you asking about creating the depth map, or are you asking about how to embed a depth map into a flat JPEG, or both? – scottbb Nov 21 '18 at 21:42

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.

  1. Determine which tag likely contains the depth map.

    exiftool example.jpg | grep -i binary
  2. Copy the tag to an image to which you want to add a depth map:

    exiftool -TagsFromFile example.jpg -Data image.jpg
  3. Replace the depth map with a new one:

    exiftool '-Data<=depth-map.jpg' image.jpg

See also:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.