使用载波获取Failed to manipulate with MiniMagick, maybe it is not an image?
根据Carrierwave的说法,这是一个微不足道的问题,根据minimagick的说法,这是一个令人发指的问题。 ♂️
当我上传较小的图像时,一切都很好。 当我上传非常大的图像时,会发生这种情况:
Failed to manipulate with MiniMagick, maybe it is not an image?
Original Error: `mogrify -strip! /var/folders/19/hzl_0_sx19xf5sz8q2zhxh7w563yd8/T/mini_magick20190523-11271-1chzsin.jpg`
failed with error:
mogrify: unrecognized option `-strip!' @ error/mogrify.c/MogrifyImageCommand/6253.
我没有使用strip!
,我正在使用strip
在CarrierWave.configure
中:
def strip
manipulate! do |img|
img.strip
img = yield(img) if block_given?
img
end
end
img.strip
未使用,img.strip!
这是什么原因?