ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: krys on November 12, 2020, 01:38:36 PM

Title: Samsung Note10+ wrong binary data extracted for depthmap
Post by: krys on November 12, 2020, 01:38:36 PM
Hello,

The extracted output data is approximately double the indicated size and the gray image displayed by gimp doesn't correspond to what is expected,


[MakerNotes]    DepthMapName : DualShot_DepthMap_1
[MakerNotes]    DepthMapData   : (Binary data 762048 bytes, use -b option to extract)
[MakerNotes]    DepthMapWidth  : 1008
[MakerNotes]    DepthMapHeight  : 756

[Composite]     Aperture               : 2.1
[Composite]     ImageSize             : 4032x3024
[Composite]     DepthMapTiff         : (Binary data 762252 bytes, use -b option to extract)


Regards
Title: Re: Samsung Note10+ wrong binary data extracted for depthmap
Post by: StarGeek on November 12, 2020, 02:35:03 PM
I can't reproduce that here.


C:\>exiftool -g1 -a -s -DepthMapData "Y:\!temp\ccccc\g\untitled shoot-022.jpg"
---- Samsung ----
DepthMapData                    : (Binary data 762048 bytes, use -b option to extract)
C:\>exiftool -g1 -a -s -b -DepthMapData >Y:\!temp\ccccc\g\temp "Y:\!temp\ccccc\g\untitled shoot-022.jpg"
C:\>exiftool -g1 -a -s -filesize# Y:\!temp\ccccc\g\temp
---- System ----
FileSize                        : 762048
Title: Re: Samsung Note10+ wrong binary data extracted for depthmap
Post by: StarGeek on November 12, 2020, 02:36:38 PM
Ah, got it.  Do not use PowerShell when you want to redirect or pipe binary data.  See here (https://exiftool.org/forum/index.php/topic,8137.msg41663.html#msg41663).
Title: Re: Samsung Note10+ wrong binary data extracted for depthmap
Post by: krys on November 13, 2020, 08:02:58 AM
Thank you so much.
I was far from thinking that Powershell was the culprit.

Have a nice day.