0 votes

I installed the two 64-bit dependencies of ImageMagick and GhostScript.
My local Efficy doesn't recognize them, even after an iisreset.

Do I need to change some NTFS permissions?

asked in IT by (6.8k points)

2 Answers

0 votes

Hello Kristof,

I didn't had this issue on my environnement.

usually, i have this issue when I install Efficy before the dependances. But a reboot of the system fixed the issue.

Alex.

answered by (775 points)
I confirms it's solved by a reboot. Thanks :-)
0 votes

Hello,

Some additional info :

The Com+ user (the user which is running the com+) has to have at least read/write/modify on the folder c:\windows\temp.

If not, you would have an error like this on the log ImageMagickErrors_20190305.log

[2019/03/05 13:21:54.732] Database "test15112" Exception EEfficyMagickWandException File 24_0
Delegate Error : PDFDelegateFailed `[ghostscript library 9.22] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dUseCIEColor -dFirstPage=1 -dLastPage=2 "-sOutputFile=C:/Windows/TEMP/magick-1392ctlMWaJGyeJK%d" "-fC:/Windows/TEMP/magick-13927zUutq5JoNHw" "-fC:/Windows/TEMP/magick-1392rmVFZoQ8mRaA": (null)' @ error/pdf.c/ReadPDFImage/809

Alex.

answered by (775 points)
Hi Alexis, this happens for postscript conversions, you could avoid the problem with the temporary path for ghostscript conversions by configuring certain modifications as the following and you could register a new temporary path to any other drive:

Step1: Configuring the delegates in the delegates.xml
Configure the path of the ghostscript bin folder on the system variables and/or configure the delegates.xml which can be found in the folder path C:\Program Files\ImageMagick

Modify the delegate xml as below:

<delegate decode="eps" encode="ps" mode="bi" command=""C:\Program Files\gs\gs9.26\bin\gswin64.exe@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=ps2write "-sOutputFile=%o" -- "%i"">

Step 2: The policy.xml

For the second problem where Imagemagick has problems to access the Temp folder of the C drive.

Add or uncomment the policy for the temporary file path as below

<policy domain="resource" name="temporary-path" value="your new temporary path"/>

Also add the below to the same xml file

<policy domain="module" rights="read|write" pattern="{PS,PDF,XPS}">

Hope this helps
Welcome to Efficy Overflow, where you can ask questions and receive answers from other members of the community.
1,165 questions
1,423 answers
1,713 comments
325 users