From 66b0aae61ec97267a95dfff155e513ffd69e06d0 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Wed, 11 Sep 2019 08:00:59 -0500 Subject: [PATCH] Add the TikZImage package to the list of loaded pg modules and add the external convert program. --- conf/defaults.config | 1 + conf/site.conf.dist | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/conf/defaults.config b/conf/defaults.config index d648c76dff..d2b3723aee 100644 --- a/conf/defaults.config +++ b/conf/defaults.config @@ -1238,6 +1238,7 @@ ${pg}{modules} = [ [qw(GD)], [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand utf8)], [qw(AnswerHash AnswerEvaluator)], + [qw(TikZImage)], [qw(WWPlot)], # required by Circle (and others) [qw(Circle)], [qw(Class::Accessor)], diff --git a/conf/site.conf.dist b/conf/site.conf.dist index 276e57c0b9..6e7497648b 100644 --- a/conf/site.conf.dist +++ b/conf/site.conf.dist @@ -112,6 +112,11 @@ $externalPrograms{pdflatex} ="/usr/bin/pdflatex --shell-escape"; $externalPrograms{dvipng} ="/usr/bin/dvipng"; +# In order to use imagemagick convert you need to change the rights for PDF files from +# "none" to "read" in the policy file /etc/ImageMagick-6/policy.xml. This has possible +# security implications for the server. +$externalPrograms{convert} ="/usr/bin/convert"; + #################################################### # NetPBM - basic image manipulation utilities # Most sites only need to configure $netpbm_prefix. @@ -128,7 +133,7 @@ $externalPrograms{pngtopnm} = "$netpbm_prefix/pngtopnm"; #################################################### # set timeout time (-t 40 sec) to be less than timeout for problem (usually 60 seconds) $externalPrograms{checkurl} = "/usr/bin/lwp-request -d -t 40 -mHEAD "; # or "/usr/local/bin/w3c -head " -$externalPrograms{curlCommand} = "/usr/bin/curl"; +$externalPrograms{curl} = "/usr/bin/curl"; #################################################### # image conversions utiltiies