Answers:
解决了以下问题:
cat <<EOF > /etc/profile.d/ImageMagick.sh
# Set ImageMagick memory limits: it eats too much
export MAGICK_MEMORY_LIMIT=1024 # Use up to *MB of memory before doing mmap
export MAGICK_MAP_LIMIT=1024 # Use up to *MB mmaps before caching to disk
export MAGICK_AREA_LIMIT=4096 # Use up to *MB disk space before failure
export MAGICK_FILES_LIMIT=1024 # Don't open more than *file handles
EOF
您是否尝试过缓存?
从手册页
缓存阈值
megabytes of memory available to the pixel cache.
Image pixels are stored in memory until 80 megabytes of
memory have been consumed. Subsequent pixel operations
are cached on disk. Operations to memory are significantly
faster but if your computer does not have a sufficient
amount of free memory you may want to adjust
this threshold value.
我正在使用以下内容:
convert -limit memory 64 -limit map 128 original.djvu newfile.pdf
我的主驱动器空间有限,因此我要在变量前添加
env MAGICK_TMPDIR=/host/Temp convert -limit memory 64 -limit map 128 original.djvu newfile.pdf
-limit
磁盘时,似乎可以使用它。imagemagick正在使用尽可能多的内存和磁盘似乎很奇怪...因为肯定可以一次只渲染一页...但是我想可能正在发生一些并行性。
convert
吗?我只有“限制类型值像素缓存资源限制”。加上您的报价说“默认值为80Mb”,但我的转换