Skip to content

Change child_process.exec() usage to child_process.spawn() #11

@mattduffy

Description

@mattduffy

The exec() function is limited by its maxBuffer parameter. It does not seem to be affected by larger memory allocations after a certain point, so it results in a buffer out of range fatal error if too many images are sent to exiftool, or if the images have lots of extra binary data, like large preview/thumbnail metadata.

Use the spawn() function to execute the exiftool command so it is not constrained by the memory limit of exec() buffer size.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions