creating a HEIC file adding 2 JPEGs, 1-with the image and 2-with depthmap

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
josephotoservices
Posts: 4
Joined: 2019-06-01T11:09:34-07:00
Authentication code: 1152

creating a HEIC file adding 2 JPEGs, 1-with the image and 2-with depthmap

Post by josephotoservices »

Hi everyone I'm new in here; I got an iMac running Mojave, yesterday I successfully installed ImageMagick from Terminal.

I need to create a HEIC file based on 2 JEPGs one with the image and the second with depth map; in order to build something like an iPhone Portrait file.

I tried this but didn’t work as I supposed it; anyway I gave it a try.

magick DSC_0035.jpg +matte DSC_0035_depth.jpg jays.heic



Thanx in Advanced
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: creating a HEIC file adding 2 JPEGs, 1-with the image and 2-with depthmap

Post by fmw42 »

Did you install libheif?

From the format page:
HEIC R Apple High efficiency Image Format HEIC requires the libheif delegate library.
See https://github.com/strukturag/libheif and read the limitations. That library is not in full compliance with the Apple heic format. It is limited in its scope.

Also I believe it is limited to IM 7. What version of ImageMagick did you install?

Search this forum for heic or libheif. For example I found

https://imagemagick.org/discourse-serve ... ic#p160050
josephotoservices
Posts: 4
Joined: 2019-06-01T11:09:34-07:00
Authentication code: 1152

Re: creating a HEIC file adding 2 JPEGs, 1-with the image and 2-with depthmap

Post by josephotoservices »

my version is 7.0.8-9, is it suitable for my purpose ?
before I register this forum I read the link https://imagemagick.org/discourse-serve ... ic#p160050
and to be honest it supposed many questions when I tried to understanding all long confusing command line parameters; but I’ll learn all the meaning during this week but right now I need a shortcut.

Thank fmw42 for your pretty fast answers; but if you or anyone happened to know any ideas? please help me with it
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: creating a HEIC file adding 2 JPEGs, 1-with the image and 2-with depthmap

Post by fmw42 »

my version is 7.0.8-9, is it suitable for my purpose ?
Possibly. It was introduced earlier, but there have been some bug fixes and changes. Read the changelog at https://imagemagick.org/script/changelog.php and search for heic.


Sorry, I have no experience with it.

Just to be sure everything is OK with your install, type in a terminal window:

Code: Select all

magick -version
and paste here what you get back.

Also try
magick logo: logo.gif
Does that create an output image in your current directory.
Post Reply