i created an image with my own iPhone app. The image is in .heif format and it contains the depth map. (i know this because the Photos app recognizes it) I now downloaded and installed imagemagick. and ran the following command:

magick identify -verbose orginal.HEIC

This shows me only three channels (Channel 0, Channel 1, Channel 2). I guess these are the rgb colors of the image.

How can I access the depth data of this image?


I don’t know about using ImageMagick itself, but ImageMagick relies on libheif, and if that’s installed, e.g., with brew install libheif, then the heif-convert example program will do this.

# heif-convert IMG_0123.HEIC blah.jpg
File contains 1 images
Written to blah.jpg
Depth image written to blah-depth.jpg

Good luck ! Without developer accees snd signing a non disclosure you wont get aceess to the IP

  • 2
    This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review Mar 3 '19 at 17:02
  • @RomeoNinov - this is an answer, it just says that it isn't possible because of IP restrictions not allowing the functionality to be added to imagemagick. I can't speak to the validity of the answer, but it's certainly an answer.
    – AJ Henderson
    Mar 3 '19 at 20:46
  • @AJHenderson, my opinion is this is more comment. Mar 4 '19 at 4:47
  • @RomeoNinov a short answer is still an answer. If it was posted as a comment, then people couldn't down vote it if it was wrong or not helpful. If this was posted as a comment, it would be removed.
    – AJ Henderson
    Mar 4 '19 at 5:17
  • 2
    @flolilolilo a wrong answer is still an answer. Down vote it if it's wrong. Stack exchange very specifically does not remove posts for being wrong.
    – AJ Henderson
    Mar 16 '19 at 14:04

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.