getDepthInfo = async function(input) {
const info = await exifr.parse(input, {
tiff: false,
xmp: true,
multiSegment: true,
mergeOutput: false
});
if (info && info.GDepth) {
const { Data, Mime } = info.GDepth;
const url = `data:${Mime};base64,${Data}`;
return { hasDepth: true, info, url };
}
return { hasDepth: false };
}