Extracting specific EmbeddedImage(s) from a VNT

Started by eeeps, May 08, 2023, 07:30:33 PM

Previous topic - Next topic

eeeps

I have been handed a VNT file and I am trying to get anything I can out of it.

Exiftool can see a bunch of PNGs in there, great! https://gist.github.com/eeeps/3ebf194ed6f209c3fad43a98629517c2

But I haven't been able to figure out how to extract more than the first one, with -b. How to I export specific EmbeddedImages, or better yet all EmbeddedImages?

—eric

Phil Harvey

Hi Eric,

Try this:

exiftool -embeddedimage -a -b -W "%d/%f_%t_%g3.%s" FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

eeeps

Phil!

It worked!

For mysterious reasons I had to delete the `%d/`:

% exiftool -embeddedimage -a -b -W "%d/%f_%t_%g3.%s" prod29550692_E22920216054_TQ_OD23_pp3s0x.vnt
Error creating /prod29550692_E22920216054_TQ_OD23_pp3s0x_EmbeddedImage_Doc1.png
(snip)
    1 image files read
   35 files could not be read
    0 output files created

% exiftool -embeddedimage -a -b -W "%f_%t_%g3.%s" prod29550692_E22920216054_TQ_OD23_pp3s0x.vnt
   35 output files created

But after that, it worked a treat. THANK YOU!!!

—eric

StarGeek

It probably should have been %d%f_%t_%g3.%s or %D/%f_%t_%g3.%s

The %d variable includes a slash, the result was dir//file. Windows cmd ignores that, but I'm not sure how that is handled on other systems.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Right.  The "/" shouldn't be there.  A double slash is fine on any system, but if there is no directory specified and %d is empty then the leading slash represents the root directory, which is the reason for the failure here.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

eeeps

Makes sense! Thank you.

One more, possibly very simple question. On line 22 of the output I posted earlier, there is a PNG in the "Root Directory", that is not in an EmbeddedImage tag. How do I extract that?

—eric

Phil Harvey

Hi Eric,

The embedded images are extracted from the root entry, so you are just seeing one of those.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

eeeps

Makes sense, thank you!

I am being told there is some sort of 3D data hiding in this Vignette file, as well, of either the "planar" or "flowline" types described here: https://experienceleague.adobe.com/docs/dynamic-media-developer-resources/image-serving-api/image-rendering-api/http-protocol-reference/http-protocol-syntax/vignettes/c-ir-vignettes.html?lang=en

I'm assuming exiftool can't see or extract that -- I'm not even sure what format it's in -- but you've been so helpful in this thread I figured it was worth an ask.

Possibly (?) related; the `exiftool -v` output from a different Vignette file contains two tag names (`VmtFile` and `PolFile`) that I don't see documented anywhere. Any idea what those are?

Thank you!!
—eric

Phil Harvey

Hi Eric,

Sorry, but I haven't seen the 3D data you mention, and I don't know what VmtFile and PolFile signify.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

eeeps

Phil, no worries and many thanks. If you're curious I can ask if I can share this file publicly; if not, I understand that I've already taken up a good chunk of your time, and your help thusfar has been invaluable.

—eric

Phil Harvey

Sure, please share the file and I'll take a look at it when I get a chance.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

eeeps

I'm not sure if I have permission to share the files publicly. I emailed them to you directly.

No rush, and no expectations of any reply. Thank you,
—eric

eeeps

Phil,
Is there any way to extract the contents of VmtFile and PolFile using exiftool? Even if we don't know how to interpret them yet?
Thanks,
—eric

Phil Harvey

ExifTool deals with metadata only, not the actual file data.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).