archlinux latex2png 修復

installation


sudo pacman -S latex2rtf imagemagick

add policy in convert


convert: attempt to perform an operation not allowed by the security policy `gs' @ error/delegate.c/ExternalDelegateCommand/378.

sudo vim /etc/ImageMagick-7/policy.xml

add policy:
<policymap>
...
<policy domain="coder" rights="read | write" pattern="gs" />
...
</policymap>

reference

fix color


convert: profile 'icc': 'RGB ': RGB color space not permitted o
n grayscale PNG `a.png' @ warning/png.c/MagickPNGWarningHandler
/1748.


sudo vim /usr/bin/latex2png

line27:
CONVERT="convert -strip"

reference

留言

這個網誌中的熱門文章

[Antergos] disable touchpad