Ubuntu 图像Magick错误\u模块无法加载模块

Ubuntu 图像Magick错误\u模块无法加载模块,ubuntu,imagemagick,Ubuntu,Imagemagick,在运行带有Goerror\u模块(0)的ImageMagick时,我随机遇到此错误:无法加载模块“/usr/lib/x86\u 64-linux-gnu/ImageMagick-6.9.10/modules-Q16/coders/jpeg.la”:未找到文件@error/MODULE.c/OpenModule/1314 Gocode imagick.Initialize() _, err = imagick.ConvertImageCommand(cmd) #error handling im

在运行带有Go
error\u模块(0)的ImageMagick时,我随机遇到此错误:无法加载模块“/usr/lib/x86\u 64-linux-gnu/ImageMagick-6.9.10/modules-Q16/coders/jpeg.la”:未找到文件@error/MODULE.c/OpenModule/1314

Go
code

imagick.Initialize()
_, err = imagick.ConvertImageCommand(cmd)
 #error handling
imagick.Terminate()
其中
cmd

convert  /tmp/sampleImg.jpg  -resize  160x120>  -transparent  white  -gravity  center  -extent  160x120  -quality  82  -interlace  line  -background  white  -dither  none  -define  jpeg:fancy-upsampling=off  -define  png:compression-filter=5  -define  png:compression-level=9  -define  png:compression-strategy=1  -define  png:exclude-chunk=all  /tmp/160x120/sampleImg.jpg

请定义“随机”:当您连续多次运行同一命令(我的意思是,字面上相同)时,这种情况是否可靠地发生?或者它只发生在JPEG文件上,我猜它真的发生了?另一个问题:手动运行
convert…
命令(在shell控制台窗口中)时是否会发生这种情况?另外,从判断,您是否确定在运行此命令的机器上安装了
libmagickcore-6.q16-6
包?如果是,执行
apt安装--重新安装libmagickcore-6.q16-6
是否解决了问题?此外,
convert-list format | grep-i JPEG
是否返回任何信息?这种情况100次或500次发生一次。当我尝试从数据库加载文件并调整其大小时,我有一个包含多个图像的产品,每个图像也需要调整为多个大小,此文件确实存在
/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.10/modules-Q16/coders/jpeg.la
不确定为什么有时同一图像文件的ImageMagick无法加载此文件通过更新到ImageMagick 7进行修复