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?


2 Answers 2


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
    \$\begingroup\$ 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 \$\endgroup\$ Mar 3, 2019 at 17:02
  • \$\begingroup\$ @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. \$\endgroup\$
    – AJ Henderson
    Mar 3, 2019 at 20:46
  • 1
    \$\begingroup\$ @AJHenderson, my opinion is this is more comment. \$\endgroup\$ Mar 4, 2019 at 4:47
  • 1
    \$\begingroup\$ @AJ See my comment under the OP - it is possible. \$\endgroup\$
    – flolilo
    Mar 16, 2019 at 13:09
  • 2
    \$\begingroup\$ @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. \$\endgroup\$
    – AJ Henderson
    Mar 16, 2019 at 14:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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