Jquery 托马斯J布拉德利的铁轨和签名板

Jquery 托马斯J布拉德利的铁轨和签名板,jquery,ruby-on-rails,ruby,ruby-on-rails-3,signature,Jquery,Ruby On Rails,Ruby,Ruby On Rails 3,Signature,im使用rails+jquerymobile+签名板() 我的问题是转换为图像() 当我画签名并提交表格时,我发现了一些奇怪的错误: convert.exe: Non-conforming drawing primitive definition `line' @ error/draw.c/DrawImage/3154. convert.exe: unable to open image `111,9': No such file or directory @ error/blob.c/Open

im使用rails+jquerymobile+签名板()

我的问题是转换为图像()

当我画签名并提交表格时,我发现了一些奇怪的错误:

convert.exe: Non-conforming drawing primitive definition `line' @ error/draw.c/DrawImage/3154.
convert.exe: unable to open image `111,9': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.exe: no decode delegate for this image format `111,9' @ error/constitute.c/ReadImage/550. 
my controller.rb中的代码:

  instructions = JSON.load(params[:output]).map { |h| "line #{h['mx']},#{h['my']} #{h['lx']},#{h['ly']}" } * ' '
  system "convert -size 198x55 xc:transparent -stroke blue -draw '#{instructions}' signature.png"


有什么建议吗

尝试卸载并重新安装imagemagick


brew卸载imagemagick

brew删除imagemagick

那么,

brew安装imagemagick