ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Nulupu on April 07, 2024, 03:42:44 AM

Title: MPImage2 output 0Kb
Post by: Nulupu on April 07, 2024, 03:42:44 AM
I use
exiftool -b -MPImage2 IMG_XXXX.jpg > IMG_XXXX_depth.jpg
but the result is a 0kb file

exiftool -depthmapdata -b IMG_XXXX.jpg > depth.dat
give me a full dat file

I need grayscale pic depthmap.

I tried the tool on 2 different pc. Same result.

I apologize if i repeat something of already discussed but i did not find any similar topic.

Title: Re: MPImage2 output 0Kb
Post by: StarGeek on April 07, 2024, 03:54:57 AM
Quote from: Nulupu on April 07, 2024, 03:42:44 AMI use
exiftool -b -MPImage2 IMG_XXXX.jpg > IMG_XXXX_depth.jpg
but the result is a 0kb file

This most likely means that there isn't an MPImage2

Try the command in this example (https://exiftool.org/exiftool_pod.html#exiftool--a--b--W-d-f_-t--c.-s--preview:all-dir) to extract and save embedded images.

If that doesn't work, use this command and copy/paste the output here
exiftool -G1 -a -s -MPF:all IMG_XXXX_depth.jpg
exiftool -G1 -a -s -MPF:all IMG_XXXX.jpg
Title: Re: MPImage2 output 0Kb
Post by: StarGeek on April 08, 2024, 02:01:17 PM
Edit: Made an error in filename in the above command, fixed

What version of exiftool are you using?
exiftool -ver

It works correctly here
C:\>exiftool -ver
12.82

C:\>exiftool -a -b -W %d%f_%t%-c.%s -preview:all  Y:\!temp\x\y\z\IMG_5452.jpg
    1 output files created

IMG_5452_MPImage2.jpg
Title: Re: MPImage2 output 0Kb
Post by: Nulupu on April 08, 2024, 04:27:07 PM
Thanks for the inputs,
i'm starting now with this toy but i've found my mistake.
Mi pics works fine with:
exiftool -b -DepthMapTiff IMG_XXXX.jpg > IMG_XXXX_depth.tiff (or jpg)

Thanks!