I've extracted a whole bunch of HEIC photos from my iPhone and many of them contain a depth channel. This is because they were taken in a portrait mode.
After some digging, I was able to approach to expected outcome using a command like this:
convert -monitor \( IMG_0285.JPG \) \( IMG_0285-depth.JPG -resize 3024x4032 -negate \) -set option:compose:args '8x8' -compose blur -composite out.jpg
But this is still far from what I see on the iPhone itself. I've been googling a lot and didn't find anything similar.
So what are the ways to convert HEIC image with depth to a JPG?