Skip to content

[imagemagick] Cannot convert PDF - FailedToExecuteCommand 'gswin32c' #27003

@alvinhochun

Description

@alvinhochun

Description / Steps to reproduce the issue

Trying to convert a PDF with convert file.pdf file.png fails with an error.

Expected behavior

Conversion succeed

Actual behavior

convert.exe: FailedToExecuteCommand `'gswin32c' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitma
p=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=png16malpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -dP
rinted=false  '-sOutputFile=Z:/Temp/magick-XQYMAyQOXQKlVqyaAj3PpaQ3IqQI7Rmi%d' '-fZ:/Temp/magick-evhHJndlpNXgZzKHMgsgbSv
lxWjIduEo' '-fZ:/Temp/magick-nhF65xY-n0N9p4sM4ZoIiz-4haYd8uWT'' (127) @ error/ghostscript-private.h/ExecuteGhostscriptCo
mmand/75.
convert.exe: PDFDelegateFailed `The system cannot find the file specified.
' @ error/pdf.c/ReadPDFImage/713.

Process Monitor shows the process trying to find the files C:\msys64\ucrt64\bin\'gswin32c'.exe and etc. from various paths (note the single quotes).

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions