我有以下代码,它调整大小和图像,然后添加一些十六进制背景。在本地主机上这有效,但在heroku上我收到以下错误
version :big do
process :offer_resize_and_pad
end
def offer_resize_and_pad
img = resize_and_pad(600, nil, model.hex, 'Center')
img
end
"Photo Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: Command (\"mogrify -thumbnail \"600x>\" -background \"#fff\" -gravity \"Center\" -extent \"600x\" /tmp/mini_magick20130217-2-1hts61y.jpg\") failed: {:status_code=>1, :output=>\"mogrify: Empty JPEG image (DNL not supported)
/tmp/mini_magick20130217-2-1hts61y.jpg' @ jpeg.c/EmitMessage/232.\n\"