marklundeberg / dokuwiki-plugin-latex

LaTeX plugin for dokuwiki.
http://www.dokuwiki.org/plugin:latex
9 stars 6 forks source link

Fails on PNG creation #12

Open Pyriamp opened 4 years ago

Pyriamp commented 4 years ago

I've installed the dokuwiki and this plugin on Windows Server 2019. Everything seems to be working except the final PNG conversion. I've attached screenshots to go along with this. The test render fails saying it can't find the PNG file. If I save the test files and then manually run the same command ("C:/Program Files/ImageMagick-7-portable/convert" -density 120 -trim -transparent "#FFFFFF" 48743788316f095c1e12022620e8d979.ps 48743788316f095c1e12022620e8d979.png 2>&1) in the command prompt, it completes and generates a PNG file just fine.

Any idea why it's acting this way? It gives the same file not found error if I try to run the command from outside of the latex tmp folder...

Screen Shot 2020-02-27 at 5 56 03 PM

Screen Shot 2020-02-27 at 5 56 14 PM

Screen Shot 2020-02-27 at 5 58 20 PM

ivoschulthess commented 4 years ago

I had the same problem (on a linux server). Following the instructions on this URL helped: https://stackoverflow.com/questions/42928765/convertnot-authorized-aaaa-error-constitute-c-readimage-453

Basically in the /etc/ImageMagick-6/policy.xml file (or similar, this is linux anyway) you have to give read access to the *.ps file by changing the line <policy domain="coder" rights="write" pattern="PS" /> to <policy domain="coder" rights="read|write" pattern="PS" />

Lu-Wi commented 4 years ago

Thanks, had the exact same issue. I even added a little code to debug the *.php file and was very confused when I saw that everything was in place.