Next.js Discord

Discord Forum

Could not execute GraphicsMagick/ImageMagick

Unanswered
fadedust posted this in #help-forum
Open in Discord
I am getting this error message when deploying my next js app to vercel, this is working fine locally

Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%p" "-" this most likely means the gm/convert binaries can't be found
    at ChildProcess.<anonymous> (/var/task/apps/web/.next/server/chunks/9210.js:6:289151)
    at ChildProcess.emit (node:events:519: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) {
  digest: '236679079'
}

I am using a pdf2pic npm package for pdf parsing. any workaround

1 Reply

How did you fix this?