I was getting the pdf from the API mentioned above but I'm getting this error with pdf2image:
/home/myusername/pptToImageApi/node_modules/gm/lib/command.js:249
cb(new Error('Could not execute GraphicsMagick/ImageMagick: '+cmd+" this most likely means the gm/convert binaries can't be found"));
^
Error: Could not execute GraphicsMagick/ImageMagick: gm "convert" "-density" "100x100" "-quality" "75" "-[0]" "-resize" "600x600!" "-compress" "jpeg" "./images/untitled.1.png" this most likely means the gm/convert binaries can't be found
at ChildProcess.<anonymous> (/home/realsyntexia/nikitimi/pptToImageApi/node_modules/gm/lib/command.js:249:12)
at ChildProcess.emit (node:events:518:28)
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
I'm using this API to get a pdf and this is a snippet of my current set-up:
I was getting the pdf from the API mentioned above but I'm getting this error with pdf2image: