Ghostscript support in windows broken in 6.8.9-2

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
temp4746
Posts: 4
Joined: 2014-06-04T11:11:22-07:00
Authentication code: 6789

Ghostscript support in windows broken in 6.8.9-2

Post by temp4746 »

Trying to convert a PDF using imagemagick version 6.8.9-2 fails, a ghostscript viewer window pops up briefly and closes and imagemagick prints an "No images defined" error

I'm using Imagemagick 6.8.9-2 and ghostscript 9.14

Using the command:

Code: Select all

convert bla.pdf bla.png
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Ghostscript support in windows broken in 6.8.9-2

Post by dlemstra »

I cannot reproduce your problem on Windows 7 with IM 6.8.9-2 en Ghostscript 9.14. Does this happen for every PDF or does it only happen with a specific PDF? Can you post the output of convert -verbose bla.pdf bla.png in a [ code ] block?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
temp4746
Posts: 4
Joined: 2014-06-04T11:11:22-07:00
Authentication code: 6789

Re: Ghostscript support in windows broken in 6.8.9-2

Post by temp4746 »

dlemstra wrote:I cannot reproduce your problem on Windows 7 with IM 6.8.9-2 en Ghostscript 9.14. Does this happen for every PDF or does it only happen with a specific PDF? Can you post the output of convert -verbose bla.pdf bla.png in a [ code ] block?

Code: Select all

"gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=50000
0000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGra
phicsAlphaBits=4 "-r72x72"  "-sOutputFile=C:/Users/user/AppData/Local/Temp/magi
ck-6188f_UC_AqH1rNe%d" "-fC:/Users/user/AppData/Local/Temp/magick-6188FfST2iYIX
UxY" "-fC:/Users/user/AppData/Local/Temp/magick-6188U_am_yANhOtp"
convert.exe: no images defined `test.png' @ error/convert.c/ConvertImageCommand/
3187.
It happens for every PDF I try.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Ghostscript support in windows broken in 6.8.9-2

Post by dlemstra »

That looks okay, expect for the error of course. Can you post the output of convert -debug all input.pdf output.png in a code block? Are there any special characters in your real user name or is it really 'user'?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
temp4746
Posts: 4
Joined: 2014-06-04T11:11:22-07:00
Authentication code: 6789

Re: Ghostscript support in windows broken in 6.8.9-2

Post by temp4746 »

dlemstra wrote:That looks okay, expect for the error of course. Can you post the output of convert -debug all input.pdf output.png in a code block? Are there any special characters in your real user name or is it really 'user'?

Code: Select all

2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Configure convert.exe[6656]: utility.c/ExpandFilenames/945/Configure
  Command line: convert {-debug} {all} {test.pdf} {test.png}
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Policy convert.exe[6656]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Read; pattern="test.pdf" ...
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Blob convert.exe[6656]: blob.c/OpenBlob/2547/Blob
    read 3 magic header bytes
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Cache convert.exe[6656]: cache.c/DestroyPixelCache/965/Cache
  destroy 
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Configure convert.exe[6656]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "C:\ImageMagick-6.8.9-2\magic.xml"
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Configure convert.exe[6656]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "magic.xml"
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Configure convert.exe[6656]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "C:\Users\user\.config\ImageMagick\magic.xml"
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Configure convert.exe[6656]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "C:\Users\user\.magick\magic.xml"
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Configure convert.exe[6656]: magic.c/LoadMagicCache/773/Configure
  Loading magic configure file "C:\ImageMagick-6.8.9-2\magic.xml" ...
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Configure convert.exe[6656]: magic.c/LoadMagicCache/773/Configure
  Loading magic configure file "magic.xml" ...
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Policy convert.exe[6656]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Coder; rights=Read; pattern="PDF" ...
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Policy convert.exe[6656]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Read; pattern="test.pdf" ...
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Blob convert.exe[6656]: blob.c/OpenBlob/2547/Blob
    read 3 magic header bytes
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Cache convert.exe[6656]: cache.c/DestroyPixelCache/965/Cache
  destroy 
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Policy convert.exe[6656]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Read; pattern="test.pdf" ...
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Blob convert.exe[6656]: blob.c/OpenBlob/2547/Blob
    read 3 magic header bytes
2014-06-06T14:36:52+03:00 0:00.000 0.000u 6.8.9 Resource convert.exe[6656]: resource.c/AcquireUniqueFileResource/468/Resource
  ...
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Resource convert.exe[6656]: resource.c/AcquireUniqueFileResource/509/Resource
  Acquire C:/Users/user/AppData/Local/Temp/magick-6656NlQdNdPVpHAV
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Resource convert.exe[6656]: resource.c/AcquireUniqueFileResource/468/Resource
  ...
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Resource convert.exe[6656]: resource.c/AcquireUniqueFileResource/509/Resource
  Acquire C:/Users/user/AppData/Local/Temp/magick-6656d-sDisIMJr12
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "C:\ImageMagick-6.8.9-2\delegates.xml"
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "delegates.xml"
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "C:\Users\user\.config\ImageMagick\delegates.xml"
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: configure.c/GetConfigureOptions/679/Configure
  Searching for configure file: "C:\Users\user\.magick\delegates.xml"
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: delegate.c/LoadDelegateCache/1318/Configure
  Loading delegate configuration file "C:\ImageMagick-6.8.9-2\delegates.xml" ...
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.010 0.000u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: delegate.c/LoadDelegateCache/1318/Configure
  Loading delegate configuration file "delegates.xml" ...
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Resource convert.exe[6656]: resource.c/AcquireUniqueFileResource/468/Resource
  ...
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Resource convert.exe[6656]: resource.c/AcquireUniqueFileResource/509/Resource
  Acquire C:/Users/user/AppData/Local/Temp/magick-6656_NYFoc__6sQC
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Configure convert.exe[6656]: nt-base.c/NTLocateGhostscript/1066/Configure
  Ghostscript ((null)) version 0.00
2014-06-06T14:36:52+03:00 0:00.020 0.016u 6.8.9 Policy convert.exe[6656]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Delegate; rights=Execute; pattern="gswin32c.exe" ...
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Resource convert.exe[6656]: resource.c/RelinquishUniqueFileResource/895/Resource
  Relinquish C:/Users/user/AppData/Local/Temp/magick-6656d-sDisIMJr12
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Resource convert.exe[6656]: resource.c/RelinquishUniqueFileResource/895/Resource
  Relinquish C:/Users/user/AppData/Local/Temp/magick-6656NlQdNdPVpHAV
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Cache convert.exe[6656]: cache.c/DestroyPixelCache/965/Cache
  destroy 
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Locale convert.exe[6656]: locale.c/GetLocaleOptions/829/Locale
  Searching for locale file: "C:\ImageMagick-6.8.9-2\locale.xml"
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Locale convert.exe[6656]: locale.c/GetLocaleOptions/829/Locale
  Searching for locale file: "locale.xml"
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Locale convert.exe[6656]: locale.c/GetLocaleOptions/829/Locale
  Searching for locale file: "C:\Users\user\.config\ImageMagick\locale.xml"
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Locale convert.exe[6656]: locale.c/GetLocaleOptions/829/Locale
  Searching for locale file: "C:\Users\user\.magick\locale.xml"
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Configure convert.exe[6656]: locale.c/LoadLocaleCache/1186/Configure
  Loading locale configure file "C:\ImageMagick-6.8.9-2\locale.xml" ...
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Configure convert.exe[6656]: locale.c/LoadLocaleCache/1186/Configure
  Loading locale configure file "locale.xml" ...
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Configure convert.exe[6656]: locale.c/LoadLocaleCache/1186/Configure
  Loading locale configure file "locale.xml" ...
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Locale convert.exe[6656]: locale.c/GetLocaleOptions/829/Locale
  Searching for locale file: "C:\ImageMagick-6.8.9-2\english.xml"
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Locale convert.exe[6656]: locale.c/GetLocaleOptions/829/Locale
  Searching for locale file: "english.xml"
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Locale convert.exe[6656]: locale.c/GetLocaleOptions/829/Locale
  Searching for locale file: "C:\Users\user\.config\ImageMagick\english.xml"
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Locale convert.exe[6656]: locale.c/GetLocaleOptions/829/Locale
  Searching for locale file: "C:\Users\user\.magick\english.xml"
2014-06-06T14:36:52+03:00 0:00.230 0.016u 6.8.9 Configure convert.exe[6656]: locale.c/LoadLocaleCache/1186/Configure
  Loading locale configure file "C:\ImageMagick-6.8.9-2\english.xml" ...
2014-06-06T14:36:52+03:00 0:00.240 0.031u 6.8.9 Configure convert.exe[6656]: locale.c/LoadLocaleCache/1186/Configure
  Loading locale configure file "english.xml" ...
2014-06-06T14:36:52+03:00 0:00.240 0.031u 6.8.9 Configure convert.exe[6656]: locale.c/LoadLocaleCache/1186/Configure
  Loading locale configure file "english.xml" ...
2014-06-06T14:36:52+03:00 0:00.250 0.047u 6.8.9 Exception convert.exe[6656]: convert.c/ConvertImageCommand/3187/Exception
  no images defined `test.png'
convert.exe: no images defined `test.png' @ error/convert.c/ConvertImageCommand/3187.
The only special character in my real user name is a capital first letter, hardly special, espcially since Windows is case insensitive when dealing with paths... and I'm seeing Imagemagick passing the paths with the correct case anyhow.

EDIT: I tried using MAGICK_TEMPORARY_PATH in case it doesn't like my temp dir, didn't help. :(

EDIT 2:
procmon.exe reveals that the actual command line used to run the process is along the lines of:

Code: Select all

"gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap_500000000 -dAlignToPixels_0 -dGridFitTT_2 "-sDEVICE_pngalpha" -dTextAlphaBits_4 -dGraphicsAlphaBits_4 "-r72x72"  "-sOutputFile_C:/Users/user/AppData/Local/Temp/magick-1796O357rrGQUtI7%d" "-fC:/Users/user/AppData/Local/Temp/magick-1796IURxjI69Vi89" "-fC:/Users/user/AppData/Local/Temp/magick-1796WtDKKmsiUd0i"
The issue is quite clear, somebody is replacing '=' with '_', which obviously causes Ghostscript to not work.

On another note, why is Imagemagick passing two files into Ghostscript (-f) when I only passed one file to convert?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Ghostscript support in windows broken in 6.8.9-2

Post by dlemstra »

Thank you for the detailed information. We found the problem and this will be fixed in the next release (6.8.9-3).

The reason it is creating two files is because the coder creates a 'ghostscript control file'. Not sure what this does but it was added by the person who created the coder.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply