Index / Questions / Why does image processing make a NodeJS

Why does image processing make a NodeJS backend run out of memory?

Answer

Rotating photos inside a single NodeJS process with the lwip module turned my backend into a memory hog as megapixels grew. I fixed it by extracting the work to an external tool that NodeJS calls and awaits.

Sources