Page 1 of 1

Possible bug IM 7 on Windows 10

Posted: 2019-08-19T03:50:06-07:00
by basta1
I use the following command to convert the first page of a PDF file:

Code: Select all

convert -quality 100 -colorspace RGB -density 300 <file.pdf>[0] -resize "800x800" -quality 100 -background white -alpha remove <file.jpg>
It works fine in Windows 7 and Windows Server 2008, Microsoft Visual C ++ for Visual Studio 2015, 2017, 2019, IM 7, GScript 9, and it does not work in Windows 10 and Windows Server 2016.

Is it a bug or I do something wrong?

Log:

Code: Select all

2019-08-19T10:38:45+00:00 0:00.000 0.000u 7.0.8 Configure Magick[460]: nt-base.c/NTRegistryKeyLookup/2118/Configure
  SOFTWARE\ImageMagick\7.0.8\Q:8
2019-08-19T10:38:45+00:00 0:00.084 0.000u 7.0.8 Configure Magick[460]: nt-base.c/NTRegistryKeyLookup/2136/Configure
  LibPath
2019-08-19T10:38:45+00:00 0:00.184 0.000u 7.0.8 Configure convert.exe[460]: client.c/SetClientName/123/Configure
  convert.exe
2019-08-19T10:38:45+00:00 0:00.275 0.000u 7.0.8 Configure convert.exe[460]: client.c/SetClientPath/160/Configure
  C:\Program Files\ImageMagick-7.0.8-Q8
2019-08-19T10:38:45+00:00 0:00.339 0.000u 7.0.8 Configure convert.exe[460]: magick.c/RegisterMagickSignalHandler/1475/Configure
  Register handler for signal: 22
2019-08-19T10:38:45+00:00 0:00.405 0.000u 7.0.8 Configure convert.exe[460]: magick.c/RegisterMagickSignalHandler/1475/Configure
  Register handler for signal: 11
2019-08-19T10:38:45+00:00 0:00.453 0.000u 7.0.8 Configure convert.exe[460]: magick.c/RegisterMagickSignalHandler/1475/Configure
  Register handler for signal: 8
2019-08-19T10:38:45+00:00 0:00.510 0.000u 7.0.8 Configure convert.exe[460]: magick.c/RegisterMagickSignalHandler/1475/Configure
  Register handler for signal: 2
2019-08-19T10:38:45+00:00 0:00.564 0.000u 7.0.8 Configure convert.exe[460]: magick.c/RegisterMagickSignalHandler/1475/Configure
  Register handler for signal: 15
2019-08-19T10:38:45+00:00 0:00.574 0.000u 7.0.8 Configure convert.exe[460]: nt-base.c/NTRegistryKeyLookup/2118/Configure
  SOFTWARE\ImageMagick\7.0.8\Q:8
2019-08-19T10:38:45+00:00 0:00.577 0.000u 7.0.8 Configure convert.exe[460]: nt-base.c/NTRegistryKeyLookup/2136/Configure
  ConfigurePath
2019-08-19T10:38:45+00:00 0:00.578 0.000u 7.0.8 Configure convert.exe[460]: nt-base.c/NTRegistryKeyLookup/2118/Configure
  SOFTWARE\ImageMagick\7.0.8\Q:8
2019-08-19T10:38:45+00:00 0:00.579 0.000u 7.0.8 Configure convert.exe[460]: nt-base.c/NTRegistryKeyLookup/2136/Configure
  ConfigurePath
2019-08-19T10:38:45+00:00 0:00.580 0.000u 7.0.8 Configure convert.exe[460]: configure.c/GetConfigureOptions/672/Configure
  Searching for configure file: "C:\Program Files\ImageMagick-7.0.8-Q8\policy.xml"
2019-08-19T10:38:45+00:00 0:00.580 0.000u 7.0.8 Configure convert.exe[460]: configure.c/GetConfigureOptions/672/Configure
  Searching for configure file: "C:\Program Files\ImageMagick-7.0.8-Q8\policy.xml"
2019-08-19T10:38:45+00:00 0:00.581 0.000u 7.0.8 Configure convert.exe[460]: configure.c/GetConfigureOptions/672/Configure
  Searching for configure file: "C:\Users\root\AppData\Local\ImageMagick\policy.xml"
2019-08-19T10:38:45+00:00 0:00.582 0.000u 7.0.8 Configure convert.exe[460]: policy.c/LoadPolicyCache/789/Configure
  Loading policy file "C:\Program Files\ImageMagick-7.0.8-Q8\policy.xml" ...
2019-08-19T10:38:45+00:00 0:00.583 0.000u 7.0.8 Configure convert.exe[460]: policy.c/LoadPolicyCache/789/Configure
  Loading policy file "C:\Program Files\ImageMagick-7.0.8-Q8\policy.xml" ...
2019-08-19T10:38:45+00:00 0:00.584 0.000u 7.0.8 Configure convert[460]: client.c/SetClientName/123/Configure
  convert
2019-08-19T10:38:45+00:00 0:00.594 0.000u 7.0.8 Configure convert[460]: utility.c/ExpandFilenames/959/Configure
  Command line: convert {-debug} {all} {-quality} {100} {-colorspace} {RGB} {-density} {300} {13558.pdf[0]} {-resize} {800x800} {-quality} {100} {-background} {white} {-alpha} {remove} {1.jpg}
2019-08-19T10:38:45+00:00 0:00.691 0.000u 7.0.8 Policy convert[460]: policy.c/IsRightsAuthorized/610/Policy
  Domain: Module; rights=Read; pattern="PDF" ...
2019-08-19T10:38:45+00:00 0:00.705 0.000u 7.0.8 Module convert[460]: module.c/OpenModule/1274/Module
  Searching for module "PDF" using filename "IM_MOD_RL_PDF_.dll"
2019-08-19T10:38:46+00:00 0:01.262 0.016u 7.0.8 Module convert[460]: module.c/GetMagickModulePath/546/Module
  Searching for coder module file "IM_MOD_RL_PDF_.dll" ...
2019-08-19T10:38:46+00:00 0:01.272 0.016u 7.0.8 Module convert[460]: module.c/OpenModule/1283/Module
  Opening module at path "C:\Program Files\ImageMagick-7.0.8-Q8\modules\coders\IM_MOD_RL_PDF_.dll"
2019-08-19T10:38:46+00:00 0:01.283 0.016u 7.0.8 Module convert[460]: module.c/OpenModule/1310/Module
  Method "RegisterPDFImage" in module "PDF" at address 00007FFF9FD635F0
2019-08-19T10:38:46+00:00 0:01.297 0.031u 7.0.8 Module convert[460]: module.c/OpenModule/1324/Module
  Method "UnregisterPDFImage" in module "PDF" at address 00007FFF9FD63880
2019-08-19T10:38:46+00:00 0:01.316 0.031u 7.0.8 Policy convert[460]: policy.c/IsRightsAuthorized/610/Policy
  Domain: Path; rights=Read; pattern="13558.pdf" ...
2019-08-19T10:38:46+00:00 0:01.330 0.047u 7.0.8 Blob convert[460]: blob.c/OpenBlob/3391/Blob
    read 3 magic header bytes
2019-08-19T10:38:46+00:00 0:01.336 0.047u 7.0.8 Cache convert[460]: cache.c/DestroyPixelCache/1041/Cache
  destroy
2019-08-19T10:38:46+00:00 0:01.362 0.047u 7.0.8 Policy convert[460]: policy.c/IsRightsAuthorized/610/Policy
  Domain: Path; rights=Read; pattern="13558.pdf" ...
2019-08-19T10:38:46+00:00 0:01.379 0.047u 7.0.8 Blob convert[460]: blob.c/OpenBlob/3391/Blob
    read 3 magic header bytes
2019-08-19T10:38:46+00:00 0:01.387 0.047u 7.0.8 Cache convert[460]: cache.c/DestroyPixelCache/1041/Cache
  destroy
2019-08-19T10:38:46+00:00 0:01.393 0.047u 7.0.8 Policy convert[460]: policy.c/IsRightsAuthorized/610/Policy
  Domain: Coder; rights=Read; pattern="PDF" ...
2019-08-19T10:38:46+00:00 0:01.404 0.047u 7.0.8 Policy convert[460]: policy.c/IsRightsAuthorized/610/Policy
  Domain: Path; rights=Read; pattern="13558.pdf" ...
2019-08-19T10:38:46+00:00 0:01.424 0.047u 7.0.8 Blob convert[460]: blob.c/OpenBlob/3391/Blob
    read 3 magic header bytes
2019-08-19T10:38:46+00:00 0:01.430 0.047u 7.0.8 Resource convert[460]: resource.c/AcquireUniqueFileResource/578/Resource
  ...
2019-08-19T10:38:46+00:00 0:01.442 0.047u 7.0.8 Resource convert[460]: resource.c/AcquireUniqueFileResource/634/Resource
  C:/Users/root/AppData/Local/Temp/magick-460bann2xhruA2H
2019-08-19T10:38:46+00:00 0:01.514 0.078u 7.0.8 Resource convert[460]: resource.c/AcquireUniqueFileResource/578/Resource
  ...
2019-08-19T10:38:46+00:00 0:01.522 0.078u 7.0.8 Resource convert[460]: resource.c/AcquireUniqueFileResource/634/Resource
  C:/Users/root/AppData/Local/Temp/magick-460BlnXcH6dfzch
2019-08-19T10:38:46+00:00 0:01.546 0.094u 7.0.8 Configure convert[460]: nt-base.c/NTRegistryKeyLookup/2118/Configure
  SOFTWARE\ImageMagick\7.0.8\Q:8
2019-08-19T10:38:46+00:00 0:01.554 0.094u 7.0.8 Configure convert[460]: nt-base.c/NTRegistryKeyLookup/2136/Configure
  ConfigurePath
2019-08-19T10:38:46+00:00 0:01.579 0.109u 7.0.8 Configure convert[460]: nt-base.c/NTRegistryKeyLookup/2118/Configure
  SOFTWARE\ImageMagick\7.0.8\Q:8
2019-08-19T10:38:46+00:00 0:01.586 0.109u 7.0.8 Configure convert[460]: nt-base.c/NTRegistryKeyLookup/2136/Configure
  ConfigurePath
2019-08-19T10:38:46+00:00 0:01.596 0.109u 7.0.8 Configure convert[460]: configure.c/GetConfigureOptions/672/Configure
  Searching for configure file: "C:\Program Files\ImageMagick-7.0.8-Q8\delegates.xml"
2019-08-19T10:38:46+00:00 0:01.618 0.109u 7.0.8 Configure convert[460]: configure.c/GetConfigureOptions/672/Configure
  Searching for configure file: "C:\Program Files\ImageMagick-7.0.8-Q8\delegates.xml"
2019-08-19T10:38:46+00:00 0:01.629 0.109u 7.0.8 Configure convert[460]: configure.c/GetConfigureOptions/672/Configure
  Searching for configure file: "C:\Users\root\AppData\Local\ImageMagick\delegates.xml"
2019-08-19T10:38:46+00:00 0:01.658 0.109u 7.0.8 Configure convert[460]: delegate.c/LoadDelegateCache/2037/Configure
  Loading delegate configuration file "C:\Program Files\ImageMagick-7.0.8-Q8\delegates.xml" ...
2019-08-19T10:38:46+00:00 0:01.670 0.109u 7.0.8 Configure convert[460]: nt-base.c/NTLocateGhostscript/1225/Configure
  Ghostscript (GPL Ghostscript) version 9.26
2019-08-19T10:38:46+00:00 0:01.678 0.109u 7.0.8 Configure convert[460]: nt-base.c/NTGhostscriptGetString/1323/Configure
  registry: "HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\9.26\GS_DLL"="C:\Program Files\gs\gs9.26\bin\gsdll64.dll"
2019-08-19T10:38:46+00:00 0:01.709 0.109u 7.0.8 Configure convert[460]: delegate.c/LoadDelegateCache/2037/Configure
  Loading delegate configuration file "C:\Program Files\ImageMagick-7.0.8-Q8\delegates.xml" ...
2019-08-19T10:38:46+00:00 0:01.723 0.109u 7.0.8 Resource convert[460]: resource.c/AcquireUniqueFileResource/578/Resource
  ...
2019-08-19T10:38:46+00:00 0:01.740 0.109u 7.0.8 Resource convert[460]: resource.c/AcquireUniqueFileResource/634/Resource
  C:/Users/root/AppData/Local/Temp/magick-460ERnjUGM9RXFZ
2019-08-19T10:38:46+00:00 0:01.749 0.109u 7.0.8 Resource convert[460]: resource.c/RelinquishUniqueFileResource/1105/Resource
  C:/Users/root/AppData/Local/Temp/magick-460ERnjUGM9RXFZ
2019-08-19T10:38:46+00:00 0:01.758 0.109u 7.0.8 Configure convert[460]: nt-base.c/NTGhostscriptGetString/1323/Configure
  registry: "HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\9.26\GS_DLL"="C:\Program Files\gs\gs9.26\bin\gsdll64.dll"
2019-08-19T10:38:47+00:00 0:02.419 0.734u 7.0.8 Exception convert[460]: utility.c/ShredFile/1845/Exception
  Failed to remove: C:/Users/root/AppData/Local/Temp/magick-460bann2xhruA2H
2019-08-19T10:38:47+00:00 0:02.544 0.734u 7.0.8 Exception convert[460]: utility.c/ShredFile/1845/Exception
  Failed to remove: C:/Users/root/AppData/Local/Temp/magick-460bann2xhruA2H
2019-08-19T10:38:47+00:00 0:02.553 0.734u 7.0.8 Exception convert[460]: utility.c/ShredFile/1845/Exception
  Failed to remove: C:/Users/root/AppData/Local/Temp/magick-460BlnXcH6dfzch
P.S. Why "Failed to remove: C:/Users/root/AppData/Local/Temp/"

Re: Possible bug IM 7 on Windows 10

Posted: 2019-08-19T04:11:17-07:00
by snibgo
Problems have been reported for Ghostscript 9.26 and later. What version of GS does it work for your Windows 7 etc? I suggest you install an earlier version of GS on your Windows 10.

Re: Possible bug IM 7 on Windows 10

Posted: 2019-08-19T04:52:58-07:00
by basta1
snibgo wrote: 2019-08-19T04:11:17-07:00 Problems have been reported for Ghostscript 9.26 and later. What version of GS does it work for your Windows 7 etc? I suggest you install an earlier version of GS on your Windows 10.
GS 9.04, 9.15 and 9.26. But which version of the GS do you propose to use with IM 7?

Re: Possible bug IM 7 on Windows 10

Posted: 2019-08-19T05:10:01-07:00
by snibgo
I use GS v9.19.

Re: Possible bug IM 7 on Windows 10

Posted: 2019-08-19T05:24:42-07:00
by basta1
Installed v.9.04 and earned!
Thanks!