How to Extact EXIF information while iterating an images folder with v8 codebox

Javi Riverola's icon

Hi

I'm trying to build some sort of stop-motion engine, and the first component is loading images from a folder and generating a Dictionary. I would like to store in this dictionary information regarding each image ( name, path etc.. ) and would like to include EXIF or Metadata ( exported from Lightroom and embedded within each file ) as well.

The folder iteration in JS is easy and already available as a current official Max Javascript example, but as far as i understand the attribute for exif or metadata is not exposed.

I see that Rob Ramirez in some post is mentioning an NPM package called EXIF-PARSER, but i don't know how to include NPM pacakges and use its functions on a v8 codebox. Is this the only option? Are there other options?

Thanks in advance,

Joshua Kit Clayton's icon

I would recommend you use node.script for this application rather than v8. That will let you easily integrate any node.js package. You can iterate files and folders and send a dictionary from the node process to Max pretty easily.

The legacy Max 8 tutorials have not yet been ported to the new documentation system, but you can access them here and they are still relevant: